Col Reorder _fnStateSave overwrites changes made by fnStateSaveCallback

Col Reorder _fnStateSave overwrites changes made by fnStateSaveCallback

tapsboytapsboy Posts: 11Questions: 0Answers: 0
edited December 2011 in General
So I added a few params to sValue in fnStateSaveCallback inside my Datatable definition.

This callback runs as a result of the the following pieces of code in datatables library

[code]
if ( typeof oInit.fnStateSaveCallback == 'function' )
{
oSettings.aoStateSave.push( {
"fn": oInit.fnStateSaveCallback,
"sName": "user"
} );
}
[/code]


[code]


for ( i=0, iLen=oSettings.aoStateSave.length ; i

Replies

  • allanallan Posts: 63,538Questions: 1Answers: 10,476 Site admin
    > Any suggestions or workarounds?

    No work arounds at the moment I'm afraid - sorry. Basically this is a limitation in how state saving is done in DataTables at the moment. This is also the only thing holding back the 1.9.0 release at this time. I hope to make the state saving a lot more flexible in 1.9 (objects rather than horrible strings) and that would then allow me to update ColReorder to take this into account and all plug-ins would benefit.

    However its just a case of getting the time to do it! Hopefully soon :-)

    Allan
This discussion has been closed.