I have added some custom columns in newsletter grid but unfortunately filter is not working for my custom columns in grid, can anyone let me know what could be issue or something i am missing to add? when i filter with custom column, nothing filters.
Here is the code i have done so far,this is code of newsletter_subscriber_block.xml:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="adminhtml.newslettrer.subscriber.grid.columnSet">
<block class="Magento\Backend\Block\Widget\Grid\Column">
<arguments>
<argument name="header" xsi:type="string" translate="true">Urgency</argument>
<argument name="index" xsi:type="string">urgency</argument>
<argument name="type" xsi:type="string">options</argument>
<argument name="options" xsi:type="array">
<item name="withinweek" xsi:type="array">
<item name="value" xsi:type="string">1</item>
<item name="label" xsi:type="string" translate="true">With in 3 Weeks</item>
</item>
<item name="afterweek" xsi:type="array">
<item name="value" xsi:type="string">0</item>
<item name="label" xsi:type="string" translate="true">After 3 Weeks</item>
</item>
</argument>
<argument name="header_css_class" xsi:type="string">col-urgency</argument>
<argument name="column_css_class" xsi:type="string">col-urgency</argument>
</arguments>
</block>
</referenceBlock>
</body>
</page>
I have override existing newsletter grid layout xml and put custom column code like above code explained.