Exclude input fields from index to prevent filtering?
Exclude input fields from index to prevent filtering?
Hi,
I'm running DataTables 1.9.4.
So far everything works fine. Great work what you guys are doing here!
My questions.
I've built a table with one search field for each column in the head section of my table like
[code][/code]
As far as I unerstand the index for each input field is build up dynamically in a foreach or something like that as soon as my dataTable object is initialised.
So each input field belongs to one column.
Because I want to filter rows by date range I need two input fields in one column, start date and end date.
But my end date input field now belongs to the following column.
Is there a possibility to exclude my second search field from auto indexing?
Probably I need to exclude both date search fields from the search/filter index because my start date even belongs to the filtering function called through the index.
I've already tried to remove the class "search_init" but the input field is still included.
I also tried something like
[code]"aoColumns": [ { "sType": "date", "bSortable": false}][/code]
or
[code]"aoColumns": [ { "sType": "date", "bFilter": false}][/code]
for my specific field but it doesn't work.
Working with columnFiltering plugin even doesn't work for me because of trouble with variable width of input fields...
But this is another topic ;)
It would be great if someone could give me a hint on how to solve my problem!
Thanks so far and regards
zeckrich
I'm running DataTables 1.9.4.
So far everything works fine. Great work what you guys are doing here!
My questions.
I've built a table with one search field for each column in the head section of my table like
[code][/code]
As far as I unerstand the index for each input field is build up dynamically in a foreach or something like that as soon as my dataTable object is initialised.
So each input field belongs to one column.
Because I want to filter rows by date range I need two input fields in one column, start date and end date.
But my end date input field now belongs to the following column.
Is there a possibility to exclude my second search field from auto indexing?
Probably I need to exclude both date search fields from the search/filter index because my start date even belongs to the filtering function called through the index.
I've already tried to remove the class "search_init" but the input field is still included.
I also tried something like
[code]"aoColumns": [ { "sType": "date", "bSortable": false}][/code]
or
[code]"aoColumns": [ { "sType": "date", "bFilter": false}][/code]
for my specific field but it doesn't work.
Working with columnFiltering plugin even doesn't work for me because of trouble with variable width of input fields...
But this is another topic ;)
It would be great if someone could give me a hint on how to solve my problem!
Thanks so far and regards
zeckrich
This discussion has been closed.