Having an online store contains numerous data like customer information, order details, and so on. Having a large number of data makes it difficult for you if you don’t have a proper data filter system. If you have picked the wrong CMS, it will become challenging to handle a large number of data. Compared to other CMS’s, Magento allows you to process a large number of data using powerful grid system & advance filters. Default, Magento 2 comes with a powerful filtration system that helps you to find the information that you are looking for quickly! But many times, it happens that you required some advanced filtered data that you can’t filter using default options.
Considering user convenience, Magento 2 allows you to create your customized filter depending on your business requirements. So, here we are back with another blog tutorial that will help you to add Multi-select filter on the backend admin grid. Here we have used multi-select for filtering products that fall under specific categories.
Firstly, We need to create “product_listing.xml” file inside your “Ui Component” folder at this path.

Now, we need to create one more file “Categorylist.php” at following path using below code.

After that we need to create one more file “Categorylist.php” with same name inside our extension model folder.

After that, we need to create “di.xml” file inside our extension etc folder that contains below code.

In this last step, we need to create “ProductDataProvider.php” file inside extension Ui folder and add below code.

Tadaa! You have successfully added your custom admin grid filter in Magento 2 backend. You are free to customize this code according to your need of adding multi-select filter.
Lastly, if you found this blog helpful, don’t forget to share it with your colleagues and Magento Friends and Let us know if you are facing an issue while implementing this code.
Happy Filtering!

[Total: 17   Average: 4.9/5]