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?

asked Oct 1, 2018 at 9:30
3
  • Please share your code. Commented Oct 1, 2018 at 10:16
  • It's exactly the same as above link. I just removed "$this->setFilterVisibility(false);" from above code. Commented Oct 1, 2018 at 10:23
  • Share screen shot where you getting that error Commented 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.

answered Oct 1, 2018 at 12:22
2
  • where to add this line? Commented 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 Commented Sep 4, 2020 at 11:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.