DataTables Column Filter not working
-
I installed tablepress and datatables filter plugins and activated… modified my shortcode to [table id=1 datatables_columnfilter=true /]
still not working.
Not sure what I missed 🙁
-
Hi,
thanks for your post, and sorry for the trouble.
Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!
Regards,
TobiasHi Tobias, my problem is that I’m working on a local site. 🙁
Not sure if this helps in finding the issue. I installed another plugin, the DataTables Filter WIDGETS. This plugin works!
Hi,
that’s unfortunate, as there’s no real way for me to debug this on a local site 🙁
Can you maybe move this to a public server, as a test site?
Does the table have a footer row? Are there any JavaScript errors in the error log console in the browser?
Regards,
TobiasThere’s no footer row. I see that there’s no javascript error in the console section of the browser.
Not sure if there would be a conflict with another plugin because I’m also using GRAVITYVIEW plugin and it uses a Datatable plugin extension.
How can I tell if that’s the culprit? Individual TABLEPRESS Datable shortcode works but I could make it work if I combine at least two extensions. 🙁
Hi,
then, please add a footer row. That’s required for the column filter, as that’s where it adds the filter input fields.
It’s very well possible that that other plugin interferes here, especially if it also loads DataTables. I can only suggest to deactivate it for a test.
Regards,
TobiasOkay..the foot row fixes that ability to combine:
DataTables Column Filter
DataTables ColumnFilterWidgetsHere’s a weird behavior, I think ColumnFilterWidgets and Buttons fight for their “place” in the page. Let me describe the behavior:
Example #1:
[table id=1 datatables_columnfilter=true datatables_columnfilterwidgets=true datatables_columnfilterwidgets_exclude_columns=2,3,5,6,7,8,9,10,16 datatables_buttons=”colvis,copy,csv,excel,pdf,print” /]In the above example, BUTTONS is written after WIDGETS, so the Buttons work but without WIDGETS.
Example #2:
[table id=1 datatables_columnfilter=true datatables_buttons=”colvis,copy,csv,excel,pdf,print” datatables_columnfilterwidgets=true datatables_columnfilterwidgets_exclude_columns=2,3,5,6,7,8,9,10,16 /]In the above example, WIDGETS is writted after BUTTONS, so the Wdigets work but without BUTTONS.
I’m guessing there’s a conflict their placing?? The last that’s written on the shortcode overwrites the previous one??
Hi,
correct, the ColumnFilterWidgets and the Buttons Extension “fight” for position here. It’s however easy to make them work both: https://ww.wp.xz.cn/support/topic/using-columnfilterwidgets-and-buttons-at-the-same-time/#post-7384963
Regards,
TobiasYOU ARE THE BEST!!!
IT WORKED, YAY! Thanks so much, Tobias. I appreciate your quick replies, awesome support.
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
TobiasP.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
The topic ‘DataTables Column Filter not working’ is closed to new replies.