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 Answer 1

4

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>  
7
  • 1
    hii thaks it worked Commented Nov 24, 2018 at 6:57
  • can we make input type date thair in filter Commented Nov 24, 2018 at 7:00
  • That's nice news, you can change filter type by this option. Commented Nov 24, 2018 at 7:00
  • <item name="filter" xsi:type="string">text</item> like here text is option. right? Commented Nov 24, 2018 at 7:01
  • like that what will for calender input Commented Nov 24, 2018 at 7:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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