ColReorder and fnUpdate
ColReorder and fnUpdate
Hey,
I am using dataTables with ColReorder (ColReorderWithResize 1.0.8) and my script pulls every 5sec new data from the server.
Works like a charm in combination with some nice animations ... as long as the order of the columns remains the same.
Now somebody requested to have the possibility to resort the columns, but when using fnUpdate to update a certain record, the data will be filled-in in the same order as the table was before reordering columns.
I tried to find a possibility to get the new order, but without success. There's _fnVisibleToColumnIndex(), but that functions seems to have a problem with the ColVis-plugin.
Do anyone have a solution to update a row when the columns were reordered ?
BR
Ramon
I am using dataTables with ColReorder (ColReorderWithResize 1.0.8) and my script pulls every 5sec new data from the server.
Works like a charm in combination with some nice animations ... as long as the order of the columns remains the same.
Now somebody requested to have the possibility to resort the columns, but when using fnUpdate to update a certain record, the data will be filled-in in the same order as the table was before reordering columns.
I tried to find a possibility to get the new order, but without success. There's _fnVisibleToColumnIndex(), but that functions seems to have a problem with the ColVis-plugin.
Do anyone have a solution to update a row when the columns were reordered ?
BR
Ramon
This discussion has been closed.