Strange behavior in ColReorder
Strange behavior in ColReorder
Hi everyone, I am having trouble using the ColReorder plugin, using server-side processing. Here's what happens:
1. When I drag a column, instead of the column header not showing, the following (what seems to be the table's caption as well) appears: http://img43.imageshack.us/img43/2741/reorder.png . The reordering is done.
2. When I do reorder the column, when I try to reload the data, I get a bunch of `undefined`s, like this: http://img35.imageshack.us/img35/2316/sortif.png
3. I couldn't replicate the next step in an image, but I can tell that, when I start messing with the order around various columns and try to fetch data, I get many errors due to undefined objects.
[code]
Uncaught TypeError: Cannot read property 'param' of undefined
--
columns.push.fnRender | :22
v | dataTables.min.js:48
Aa | dataTables.min.js:66
i.fn.dataTable.a.iDraw | dataTables.min.js:65
init.grid.$.dataTable.fnServerData | grid.js:46
f.extend._Deferred.e.resolveWith | jquery.min.js:16
w | jquery.min.js:18
f.support.ajax.f.ajaxTransport.send.d | jquery.min.js:18
[/code]
If you feel there's more data needed to solve the issue please tell me.
--
Thank you.
1. When I drag a column, instead of the column header not showing, the following (what seems to be the table's caption as well) appears: http://img43.imageshack.us/img43/2741/reorder.png . The reordering is done.
2. When I do reorder the column, when I try to reload the data, I get a bunch of `undefined`s, like this: http://img35.imageshack.us/img35/2316/sortif.png
3. I couldn't replicate the next step in an image, but I can tell that, when I start messing with the order around various columns and try to fetch data, I get many errors due to undefined objects.
[code]
Uncaught TypeError: Cannot read property 'param' of undefined
--
columns.push.fnRender | :22
v | dataTables.min.js:48
Aa | dataTables.min.js:66
i.fn.dataTable.a.iDraw | dataTables.min.js:65
init.grid.$.dataTable.fnServerData | grid.js:46
f.extend._Deferred.e.resolveWith | jquery.min.js:16
w | jquery.min.js:18
f.support.ajax.f.ajaxTransport.send.d | jquery.min.js:18
[/code]
If you feel there's more data needed to solve the issue please tell me.
--
Thank you.
This discussion has been closed.
Replies
Allan
Please note that it has been ported from a dynamic system and thus the imense amount of duplication.
However you can try and replicate the issue now. Thank you so much for helping, let me know of anything I can do to help.
Sorry for the delay in getting back to you - I've just committed a fix for ColReorder which will deal with the caption issue. You can get the latest change from the downloads page (the ColReorder nightly): http://datatables.net/download .
It is possible that the other issue you were seeing is related to this, but I've not actually been able to reproduce the error on the test page. If you see it again, could you give me a shout?
Thanks
Allan