Savestate column input fields value
Savestate column input fields value
Hi
I'm using Version: 1.5.0 beta 6.
I'm having the following problem.
I'm using bStateSave en also use individual column filter.
The first time when i use the filter all the values of the inputfields are correct.
But when i come back to the page the inputfields values for the filtered columns aren't correct anymore!
They give the original value ex. "Search engines"
Can you help me with this?
Many thanks
I'm using Version: 1.5.0 beta 6.
I'm having the following problem.
I'm using bStateSave en also use individual column filter.
The first time when i use the filter all the values of the inputfields are correct.
But when i come back to the page the inputfields values for the filtered columns aren't correct anymore!
They give the original value ex. "Search engines"
Can you help me with this?
Many thanks
This discussion has been closed.
Replies
The thing with the individual column filters is that DataTables itself doesn't know where that information is coming from - in this case of course it is coming from the input boxes, but it could be a select menu or anything else. This is because it's an API only features.
So what to do in order to achieve what you are looking for is that once the DataTable has initialised, you need to grab the settings object from the table ( fnSettings() ) and parse through the array aoPreSearchCols (the sSearch parameter of each object in that array is what you are interested in) and fill in the input select boxes with the previous search information.
Hope this helps!
Allan
I'm only have 1 problem how can i put it in the inputfields. I have the following code
/* Now do the individual input values */
for ( var i=0 ; i
[code]
/* Now do the individual input values */
var jqInputs = $('input XXX-whatever-selector');
for ( var i=0 ; i
I have used the following code:
/* Now do the individual input values */
var jqInputs = $('thead input');
for ( var i=0 ; i