DT Fails with SaveState off
DT Fails with SaveState off
Iska
Posts: 1Questions: 0Answers: 0
Hi everyone,
I just bumped into this problem I can't solve that easily;
When I disable bSaveState in the following code, DT won't initialize (it does with bStateSave on):
[code]
$(document).ready(function() {
$('#datatable').dataTable( {
"aoColumns": [
{ "bSearchable": true ,
"bSortable": true ,
"bVisible": true }
,
{ "bSearchable": true ,
"bSortable": true ,
"bVisible": true }
,
{ "bSearchable": true ,
"bSortable": true ,
"bVisible": true }
,
{ "bSearchable": false ,
"bSortable": true ,
"bVisible": true }
,{ "bSortable": false,
"sWidth": "150px"}
],
"bFilter" : true, "bPaginate" : false, "bStateSave" : false, "bSort" : true,
"aaSorting": [3,'asc'], "sScrollY" : "370px"
} );
});
[/code]
Code is a little messy because I generated it with PHP, sorry for that.
>> Error in FF console: "k is undefined".
Hope someone can help me with this...
I just bumped into this problem I can't solve that easily;
When I disable bSaveState in the following code, DT won't initialize (it does with bStateSave on):
[code]
$(document).ready(function() {
$('#datatable').dataTable( {
"aoColumns": [
{ "bSearchable": true ,
"bSortable": true ,
"bVisible": true }
,
{ "bSearchable": true ,
"bSortable": true ,
"bVisible": true }
,
{ "bSearchable": true ,
"bSortable": true ,
"bVisible": true }
,
{ "bSearchable": false ,
"bSortable": true ,
"bVisible": true }
,{ "bSortable": false,
"sWidth": "150px"}
],
"bFilter" : true, "bPaginate" : false, "bStateSave" : false, "bSort" : true,
"aaSorting": [3,'asc'], "sScrollY" : "370px"
} );
});
[/code]
Code is a little messy because I generated it with PHP, sorry for that.
>> Error in FF console: "k is undefined".
Hope someone can help me with this...
This discussion has been closed.
Replies
Allan