0

enter image description here

I want to remove some of filters from my grid in Magento 2 backend admin grid. Currently I have grid like displayed on image. But if I want to remove customer name how to do so.

please explain thanks

1

Please remove filter tag from your ui_component grid from your column.

<item name="filter" xsi:type="string">text</item> remove this tag

For example:

OLDER:

<column name="subscriber_name">
            <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="array">
                        <item name="editorType" xsi:type="string">text</item>
                        <item name="validation" xsi:type="array">
                            <item name="validate-identifier" xsi:type="boolean">true</item>
                        </item>
                    </item>
                    <item name="label" xsi:type="string" translate="true">Customer Name</item>
                    <item name="sortOrder" xsi:type="number">60</item>
                </item>
            </argument>
        </column>

NEW:

<column name="subscriber_name">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="editor" xsi:type="array">
                        <item name="editorType" xsi:type="string">text</item>
                        <item name="validation" xsi:type="array">
                            <item name="validate-identifier" xsi:type="boolean">true</item>
                        </item>
                    </item>
                    <item name="label" xsi:type="string" translate="true">Customer Name</item>
                    <item name="sortOrder" xsi:type="number">60</item>
                </item>
            </argument>
        </column>  
  • 1
    hii thaks it worked – Adarsh Shukla Nov 24 '18 at 6:57
  • can we make input type date thair in filter – Adarsh Shukla Nov 24 '18 at 7:00
  • That's nice news, you can change filter type by this option. – Birjitsinh Zala Nov 24 '18 at 7:00
  • <item name="filter" xsi:type="string">text</item> like here text is option. right? – Adarsh Shukla Nov 24 '18 at 7:01
  • like that what will for calender input – Adarsh Shukla Nov 24 '18 at 7:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.