Column filter with ColumnFilterWidgets
-
Hi there,
Goodmorning /afternoon Tobias.
I’m struggling with the option to have a Column filter.I inserted this shortcode:
[minti_table style=”3″][table id=94 datatables_columnfilterwidgets=true datatables_columnfilterwidgets_exclude_columns=1,3,4,5 /][/minti_table]I only want to filter on “year”. So when I select a year it should only show the content of the table from that year isn’t it? That’s what I would like to see.
But I get this:
https://www.dropbox.com/s/ergsvi8qc20ysx5/Filter03.jpg?dl=0Should I not see only the 2005 rows?
Am I missing something?
Thank you in advance for your support.Regards,
Ton
-
Hi,
thanks for your post, and sorry for the trouble.
You will also have to turn on the “Search” checkbox on the table’s “Edit” screen as this then loads the necessary code for the dropdowns.
If you then don’t want to show the search field, you can hide it by adding this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:
#tablepress-94_filter { display: none; }Regards,
TobiasHi Tobias,
That works like a charm, thank you very much.
One more question, is it possible to show, when opening the Table only one year? The first or last year in the columns?Regards,
TonHi Ton,
good to hear that this helped!
Unfortunately, I don’t know a solution to only show one year though, sorry.
Regards,
TobiasHi Tobias,
Thanks for your help.
One more question.
I would like to make it a group, like this. But it seems not to work. Do I miss something or isn’t it possible?
#tablepress-group-2_filter {
display: none;
}Hi,
I’m not sure what you mean with “group” here. Can you please explain that?
Regards,
TobiasHi Tobias,
I want to
#tablepress-94_filter {
display: none;
}execute for a group of tables, not al my tables. Or do I have to do this for every individual table? I can not ad a Extra CSS Classes to those tables?
Hi,
yes, you will have to do this for each table ID individually, or grouped like
#tablepress-94_filter, #tablepress-95_filter, #tablepress-123_filter { display: none; }i.e. a comma-separated list.
Using an “Extra CSS class” is not possible here, unfortunately.Regards,
TobiasAh, thank you very much!
Hi,
sure, no problem! Always happy to help!
Best wishes,
TobiasP.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
The topic ‘Column filter with ColumnFilterWidgets’ is closed to new replies.