[SOLVED] aoSearchCols and bRegex parameter
[SOLVED] aoSearchCols and bRegex parameter
I'm using search inputs in every column and i'd like to set the bRegex client-server parameter of every column.
I succesful set it when i press a key and call fnFilter() with bRegex parameter true.
But, when i want a datatable to be initialized already filtered, i can't set bRegex parameters of single columns.
For example i want for the first column to "submit" bRegex_0 = true and for the second bRegex_1 = false.
Initializing the object aoSearchCols is not possible :-(
Please help me
I succesful set it when i press a key and call fnFilter() with bRegex parameter true.
But, when i want a datatable to be initialized already filtered, i can't set bRegex parameters of single columns.
For example i want for the first column to "submit" bRegex_0 = true and for the second bRegex_1 = false.
Initializing the object aoSearchCols is not possible :-(
Please help me
This discussion has been closed.
Replies
After some hacking i did:
[code]
...
$(...searchInputs...).each(function(i) {
datatable.fnSettings().aoPreSearchCols[i].sSearch = '';
this.reset();
});
datatable.fnDraw();
...
[/code]
I cycled all inputs clearing aoPreSearchCols[i].sSearch value in DataTables settings.
If it helps you, contact me and write me something.
I'm happy to help...
CU