2

I have created a custom tab in customer view and loaded grid inside the admin using below link successfully with filter tabs in the grid.

http://www.ibnab.com/en/blog/magento-2/magento-2-backend-create-custom-tab-in-customer-view-and-load-grid-inside-admin

But I find an error while filtering on custom data table as I used join query in the collection. Does anyone know how to make filter working for the custom table?

3
  • Please share your code. Oct 1, 2018 at 10:16
  • It's exactly the same as above link. I just removed "$this->setFilterVisibility(false);" from above code.
    – Pribhav
    Oct 1, 2018 at 10:23
  • Share screen shot where you getting that error Oct 1, 2018 at 10:56

1 Answer 1

1

After some research in default modules, I came to know that I was missing just one line

$this->setUseAjax(true);

I hope it helps to someone.

2
  • where to add this line?
    – Ali Raza
    Sep 4, 2020 at 10:45
  • 1
    @AliRaza Add it in function _construct in admin GRID block which extends \Magento\Backend\Block\Widget\Grid\Extended class
    – Pribhav
    Sep 4, 2020 at 11:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.