Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
124
rated 0 times [  131] [ 7]  / answers: 1 / hits: 16800  / 11 Years ago, thu, september 5, 2013, 12:00:00

I want to exclude certain columns from filtering - much like I can with sorder but I'm not sure how to do that with the widget, is there an easy way to do this?



jQuery(document).ready(function($) {

$(#eventTable).tablesorter({
widthFixed : true,
widgets: [filter],

widgetOptions : {
filter_childRows : false,
filter_hideFilters : false,
filter_ignoreCase : true,
filter_cssFilter : 'tablesorter-filter',

filter_functions : {
1 : function(e, n, f, i) {
return e === f;
}
}
}
});
});

More From » jquery

 Answers
1

You can use either the header option or add the filter-false class to the TH tag for that column.



The header option is documented in the tablesorter documentation - click on headers in the property column of the configuration table. The syntax for the option is:



headers: { 0: { filter: false} }



Use the following CSS if you don't want to show the default disabled filter formatting:



.tablesorter thead .disabled {display: none}


[#75862] Wednesday, September 4, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
isham

Total Points: 69
Total Questions: 86
Total Answers: 86

Location: Anguilla
Member since Sun, Jan 29, 2023
1 Year ago
;