Magento – How to create Search “Textfield” filter in admin grid | Magento 2

filtermagento2search

I am trying to create Grid search feature based on strings entered in text fields as:

enter image description here

This functionality is in some of the default admin grids and few have filter button like this:

enter image description here

I wanted to implement 1st pic functionality for Sales Order Grid. Any help will be appreciated! Thanks

Best Answer

The filters functionality shown in the first image can be achieved using either layout XML grid or grid using block.

If the grid is built using UI components, such type of filters cannot be achieved.

Please refer Newsletter module for the grid using block.

Please refer Sales Rule module for reference of the grid using layout XML.