Magento2 admin grid issue

by Arjun   Last Updated July 12, 2019 08:09 AM

I have created a grid in Admin using layout. Now as per my knowledge the search functionality in grid is linked with the index argument tag value with database table row.

<block class="Magento\Backend\Block\Widget\Grid\Column" name="adminhtml.logging.archive.grid.columnSet.code" as="code">
 <argument name="header" xsi:type="string" translate="true">Code</argument>
 <argument name="index" xsi:type="string">code</argument>

when I search in grid using the code then it is working fine. Below is screenshot of table

enter image description here

But I have also shown other grid value

<block class="Magento\Backend\Block\Widget\Grid\Column">
                        <argument name="header" xsi:type="string" translate="true">Recipient Email</argument>
                        <argument name="index" xsi:type="string">recipient_email</argument>
                        <argument name="renderer" xsi:type="string">Expia\Giftcardaccount\Block\Adminhtml\Widget\Grid\Column\Renderer\Recipientemail</argument>
                        <argument name="sortable" xsi:type="boolean">false</argument>

This 'recipient_email' is not present in my table

My issue, I am getting value of 'recipient_email' from other table. Then the search functionality of this tab in grid is not working.

In short, the value is displayed using renderer block. Can I add search filter over here.

Tags : magento2

Related Questions

Updated January 28, 2019 09:09 AM

Updated October 01, 2018 18:09 PM

Updated June 03, 2019 14:09 PM

Updated November 21, 2018 13:09 PM

Updated January 04, 2018 15:09 PM