I want to add a column in the customer grid with the name approve_account
, it is not displaying in the gird. when I change the name (approve_account
) to different names like approve_accounts
it displays in heading with no column data. But I already created a customer attribute with name approve_account
so I to add this in the customer grid.
My customer_listing.xml
file
<columns name="customer_columns" class="Magento\Customer\Ui\Component\Listing\Columns">
<column name="approve_account">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="dataType" xsi:type="string">select</item>
<item name="filter" xsi:type="string">select</item>
<item name="editor" xsi:type="string">select</item>
<item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
<item name="label" xsi:type="string" translate="true">Is Approved</item>
<item name="sortOrder" xsi:type="number">51</item>
<item name="sortable" xsi:type="boolean">true</item>
<item name="visible" xsi:type="boolean">true</item>
<item name="componentDisabled" xsi:type="boolean">false</item>
</item>
</argument>
</column>
Note : Its worked in local server. Issue in production (Both having same code)