ColumnFilterWidgets icon indicating copy to clipboard operation
ColumnFilterWidgets copied to clipboard

Add option to preselect one or many filter values, so the table loads already filtered

Open AltiusRupert opened this issue 11 years ago • 2 comments

Unlike oTable.fnFilter('value', colNumber), I want this to appear as if a column had be filtered manually, which the user then has the option to change (by removing this filter or adding others).

This will help accelerate loading large data sets, I hope.

AltiusRupert avatar Sep 23 '13 20:09 AltiusRupert

I think the whole table is loaded regardless before filtering. You could test this independently of ColumnFilterWidgets with an initial search:

$(document).ready( function() {
  $('#example').dataTable( {
    "oSearch": {"sSearch": "Initial search"}
  } );
} )

cyberhobo avatar Sep 29 '13 16:09 cyberhobo

I believe this would be a valuable add-on. Would make it possible to pre-filter based on a user's preferences (for example) but still give the option for the user to remove that filter.

NicoFerna avatar May 28 '14 15:05 NicoFerna