Editor with RowReorder doesn't post ajax request if idSrc is other than DT_RowId

Editor with RowReorder doesn't post ajax request if idSrc is other than DT_RowId

aaron.dunigan.atleeaaron.dunigan.atlee Posts: 20Questions: 7Answers: 0

Link to test case:
http://live.datatables.net/dozifure/28/edit

Description of problem:
See the test case. As written, it allows re-ordering of rows, which calls the ajax function.

However, if you change the first line to
var idKey = 'id';
(which sets the idSrc of the editor instance to "id" rather than "DT_RowId")
then it no longer works: when you drag rows to reorder, the ajax function is never called, and the order column is not updated in the UI.

My data source doesn't have a field DT_RowId, and I'd rather not have to create/assign one. Am I doing something wrong here, or is this a bug?

Replies

Sign In or Register to comment.