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.
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?
-
Please share your code.Anshu Mishra– Anshu Mishra2018年10月01日 10:16:52 +00:00Commented Oct 1, 2018 at 10:16
-
It's exactly the same as above link. I just removed "$this->setFilterVisibility(false);" from above code.Pribhav– Pribhav2018年10月01日 10:23:01 +00:00Commented Oct 1, 2018 at 10:23
-
Share screen shot where you getting that errorDharmendra Jadav– Dharmendra Jadav2018年10月01日 10:56:28 +00:00Commented Oct 1, 2018 at 10:56
1 Answer 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
-
where to add this line?Ali Raza– Ali Raza2020年09月04日 10:45:33 +00:00Commented 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 classPribhav– Pribhav2020年09月04日 11:36:41 +00:00Commented Sep 4, 2020 at 11:36
default