Skip to content

Mgento Admin Grid Multi select “,” seperated value filter not working in custom grid Magento 2?

I create custom grid that include Website field and customer group fields are multiselect.
At Filter apply also need to set as multiselect that not working for me.

here I share my listing xml file code

<column name="website" class="ExtensionModuleUiComponentListingColumnWebsites">
            <argument name="data" xsi:type="array">
                <item name="options" xsi:type="object">ExtensionModuleModelSourceWebsites</item>
                <item name="config" xsi:type="array">
                    <item name="filter" xsi:type="string">MeetanshiMsgBlockAdminhtmlWidgetGridColumnFilterMultiselect</item>
                    <item name="renderer" xsi:type="string">ExtensionModuleBlockAdminhtmlWidgetGridColumnRendererMultiselect</item>
                    <item name="dataType" xsi:type="string">select</item>
                    <item name="bodyTmpl" xsi:type="string">ui/grid/cells/html</item>
                    <item name="sorting" xsi:type="string">asc</item>
                    <item name="sortOrder" xsi:type="number">20</item>
                    <item name="bodyTmpl" xsi:type="string">ui/grid/cells/html</item>
                    <item name="label" translate="true" xsi:type="string">Website</item>
                </item>
            </argument>
        </column>

The customer group and website ids store as , separated value in data base.
enter image description here
Screen Shoot ::: https://prnt.sc/9uy1BOt4Vi00