Rowreorder switching row position including data
Rowreorder switching row position including data

Hi all,
How can I switch the position of row 1 and row 2 including the row's data?
apparently Im able to drag and drop, but the row didn't change their position and also their data.
I tried using dataSrc
property but that only changing one column but i need the whole row to be changed on my visual representation. is there anyway i can do that?
Note:
I do console.log() my rowreorder callback event, on every drag and drop I performed do affect the rows, but on my visual representation nothing is moved. (hope this helped you to understand better)
How i instantiate my rowreorder:
...
rowReorder:{
selector: 'tr'
}
...
rowreorder event
...
datatable.on('row-reorder',function(e, diff, edit){
console.log(diff);
}
...
Answers
Hi @boboltm ,
This example here is showing how to use it with
rowReorder.dataSrc
. If that doesn't help, we're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.Cheers,
Colin