how to retrieve the default configuration of table.

how to retrieve the default configuration of table.

28.vivek.s28.vivek.s Posts: 69Questions: 0Answers: 0
edited January 2011 in General
hi allan,
how are you?
i have a table with fallowing configuration..
[code]
oTable = jQuery('#CacheSearchResultsTable').dataTable(
"aaSorting":[],
"aoColumns": [
{ "sType": "html" },
null,
{ "bSortable": false},
{ "bSortable": false},
{ "bSortable": false},
null,
{ "bSortable": false}
],
"sDom": '<"top"p<"clear">>rt<"bottom"ip><"clear">',
"bInfo": false,
"bAutoWidth": false ,
"bStateSave": false,
"iDisplayLength":5000
);
[/code]

suppose i am doing filtering and i got only one row after filtering, so f i have only one row then sorting should not be enable for sortable columns...so to do it...i have written fallowing code..
[code]
var arrChildHeader = oTable[0].children[0].rows[0].children;
var arrAoColumns = oTable.dataTableSettings[0].aoColumns;
if(oTable[0].children[1].rows.length == 1){
for(var i=0;i

Replies

  • 28.vivek.s28.vivek.s Posts: 69Questions: 0Answers: 0
    edited January 2011
    please help me out allan...

    i think it can be done be in same as you are doing in _fnSaveState(), to save the state of sorting and again retrieving it in _fnLoadState(), i tried multiple options but couldn't found exact solution..
    i am not getting how to do this...at least tell me some way or give me some hint..so that i can figure out something..
This discussion has been closed.