bStateSave not working after fnFilter?
bStateSave not working after fnFilter?
I am trying to maintain the table status (after filtering with fnFilter or fnFilterAll) and it seems that it doesn't work.
Doesn't it work with the filter functions?
This is my filtering code:
[code]
$('#showAgreed').click(function(){
//erasing any possible previous filter
tablePlugin.fnFilterAll( '' , i);
tablePlugin.fnFilterAll('agreed', 18);
});
[/code]
And this is my table options array: (without the columnss array)
[code]
var options = {
"oLanguage": {
"sEmptyTable": lang.emptyTable
},
"bStateSave": true,
"bAutoWidth": false,
"bDestroy":true,
"sDom": 'lrtp', //http://datatables.net/ref#sDom
"bPaginate": false,
oLanguage: {
"oPaginate": {
"sNext": ">",
"sPrevious": "<"
}
}
};
[/code]
Thanks.
Doesn't it work with the filter functions?
This is my filtering code:
[code]
$('#showAgreed').click(function(){
//erasing any possible previous filter
tablePlugin.fnFilterAll( '' , i);
tablePlugin.fnFilterAll('agreed', 18);
});
[/code]
And this is my table options array: (without the columnss array)
[code]
var options = {
"oLanguage": {
"sEmptyTable": lang.emptyTable
},
"bStateSave": true,
"bAutoWidth": false,
"bDestroy":true,
"sDom": 'lrtp', //http://datatables.net/ref#sDom
"bPaginate": false,
oLanguage: {
"oPaginate": {
"sNext": ">",
"sPrevious": "<"
}
}
};
[/code]
Thanks.
This discussion has been closed.
Replies
Allan