row reordering now working
row reordering now working
rkshirsagar
Posts: 9Questions: 5Answers: 0
code:
var temp = $(tableid).DataTable({
"data": res,
deferRender: true,
"scrollY": scorllY,
"scrollX":false,
"scrollCollapse": true,
"scroller" :true,
"paging":true,
"language": {
"zeroRecords": emptyLabel
},
"autoWidth": false,
'dom': dom,
"rowReorder":{update: true},
"columnDefs":[{ }]
});
row reordering now working. row come back to its original position
Answers
Sounds like the column you are using for sorting isn't an index column. The RowReorder docs state this:
See this example.
In order to help we will need to see what you have so. we can offer suggestions. Please post a link to your page or a test case replicating the problem so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
If I use
"rowReorder":{update: true}
property, it prevents row to be dropped. it reverts back row to original position. & If I use"rowReorder":{update: false}
row reorder works but its event after row drop i.e. row-reordered does not get called.