Using "sScrollX": "100%", "sScrollXInner": "150%", "bScrollCollapse": true, breaks plugin

Using "sScrollX": "100%", "sScrollXInner": "150%", "bScrollCollapse": true, breaks plugin

wtvampwtvamp Posts: 3Questions: 0Answers: 0
edited March 2012 in General
This works:

[code]
searchResultsTable = $('.searchResultsTable').dataTable({
"bStateSave": true,
"sDom": '<"H"lfr<"viewSelectedRows"><"clearSelectedRows"><"selectAllRows"><"saveAllRows"><"emailAllRows"><"printRows">C>t<"F"ip>',
"oColVis": {
"buttonText": "Show Columns",
"bRestore": true,
"sAlign": "left",
"aiExclude": [0,1,2,3,6,7,8,12,13,-1]
},
"aoColumnDefs": [
{ "bSortable": false, "aTargets": [0,1] },
{ "bVisible": false, "aTargets": [2, 3, 6, 7, 8, 12, 13, -1] }
]
});
[/code]

but this doesn't:

[code]
searchResultsTable = $('.searchResultsTable').dataTable({
"bStateSave": true,
"sDom": '<"H"lfr<"viewSelectedRows"><"clearSelectedRows"><"selectAllRows"><"saveAllRows"><"emailAllRows"><"printRows">C>t<"F"ip>',
"sScrollX": "100%",
"sScrollXInner": "150%",
"bScrollCollapse": true,
"oColVis": {
"buttonText": "Show Columns",
"bRestore": true,
"sAlign": "left",
"aiExclude": [0,1,2,3,6,7,8,12,13,-1]
},
"aoColumnDefs": [
{ "bSortable": false, "aTargets": [0,1] },
{ "bVisible": false, "aTargets": [2, 3, 6, 7, 8, 12, 13, -1] }
]
})
[/code]

It gives me:
Cannot reinitialise DataTable.

[quote]
To retrieve the DataTables Object for this table, please pass either no arguments to the dataTable() function, or set bRetrieve to true. Alternatively, to destroy the old table and create a new one, set bDestroy to true (not that a lot of changes to the configuration can be made through the API which is usually much faster).
[/quote]
This discussion has been closed.