in customer grid there is a phone column like this:
i can filter this column or choose to hide/show this column from setting, i need to remove this phone column from grid and filter, is there a way to do this programmatically from custom module?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityin customer grid there is a phone column like this:
i can filter this column or choose to hide/show this column from setting, i need to remove this phone column from grid and filter, is there a way to do this programmatically from custom module?
Vendor/Module/view/adminhtml/ui_component/customer_listing.xml
You can remove by <item name="componentDisabled" xsi:type="boolean">true</item>
Example:
<column name="billing_telephone">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">text</item>
<item name="editor" xsi:type="string">text</item>
<item name="label" xsi:type="string" translate="true">Phone</item>
<item name="sortOrder" xsi:type="number">60</item>
<item name="componentDisabled" xsi:type="boolean">true</item>
</item>
</argument>
</column>
Run command:
php bin/magento cache:flush