Dynamically change bSearchable. v.1.10.2
Dynamically change bSearchable. v.1.10.2
Good day!
I have standard datatable (from HTML), and I need dynamically change columns bSearchable property.
So I've wrote
$(oSettings.aoColumns).each(function (i, column) {
column.bSearchable = false;
column.bSortable = false;
});
Sortable is disabled after that, but searchable not. :(
How can I impove it?
I can't use newer version - it has some problems with my jQuery version (1.11.0)
Thanks in advance
Artem
Answers
PS
i.e. I hoped that I can make all columns unsearchable, and only one searchable - to search only in this one. So looks like it doesn't work.
So how can I do it in another way?
Ok, answer for this question I'd found :)
http://datatables.net/forums/discussion/258/search-filter-text-applied-on-a-single-column
Remove the event DataTables binds to the textbox it creates and then add your own event handler.