[Problem] Reoder Columns + Hidden/Show Columns + Data JSON(get From server + StateSave + Edittable

[Problem] Reoder Columns + Hidden/Show Columns + Data JSON(get From server + StateSave + Edittable

thanhnguyen105thanhnguyen105 Posts: 1Questions: 0Answers: 0
edited March 2012 in Plug-ins
I use all plug-ins for my table. I am using local Storage for store SateSave. But I don't see anything information of Reorder, I want write function support get all information about: reorder, hidden and show, sort for send to server.
- And plug-in Reorder have bug. When StateSave = true and Data get from JSON, StataSave not work, when I reload page all Columns return original state. Here some code:
[code]
oTable = $('#example').dataTable({
"aaData": aData,
"sDom": 'RC<"H"lfr>t<"F"ip>',
"aoColumns": [
{ "mDataProp": null,
"sClass": "control center",
"sDefaultContent": '/datatables/images/details_open.png">',
"bSortable": false},

{ "mDataProp": "name", "sClass": "data"},
{ "mDataProp":"interface", "sClass": "data"},
{ "mDataProp":"port", "sClass": "data"},
{ "mDataProp":"bandwidth", "sClass": "data"},
{ "mDataProp":"services", "sClass": "data"},


{ "sName": null,
"sClass": "control center",
"sDefaultContent": 'Save',
"bSortable": false}

],
"bStateSave": true,
"bJQueryUI": true,
"oColVis": {
"buttonText": " ",
"bRestore": true,
"aiExclude": [ 0, 6 ]
},
"fnStateSave": function (oSettings, oData) {
localStorage.setItem( 'DataTables_'+window.location.pathname, JSON.stringify(oData) );
},
"fnStateLoad": function (oSettings) {
var data = localStorage.getItem('DataTables_'+window.location.pathname);
return JSON.parse(data);
},
"sPaginationType": "full_numbers"
});
[/code]
And HTML table:
[code]

Details
Name
Interface
Port
Bandwidth
Services
Save

Details
Name
Interface
Port
Bandwidth
Services
Save

[/code]
This discussion has been closed.