Draggable rows in server-sided datatable?

Draggable rows in server-sided datatable?

kdar1987kdar1987 Posts: 9Questions: 3Answers: 0

I am trying to make rows draggable in my server-sided datatable.

I was able to accomplish this with non-server-sided datatable by code similar to this:

$("#mytable tbody tr").draggable({
revert:false,
revertDuration:0
});

However, with actually server-side datatable, this doesn't seem to work. I can only drag the entire table if I just specify $("#mytable").draggable({...........

How can I get row on server-sided datatable to be draggable?

Answers

  • larsonatorlarsonator Posts: 54Questions: 4Answers: 2

    could you put an example up on jsfiddle?

    have you tried again on your server-side table with $("#mytable tbody tr") selector?
    keep in mind doing this with server-side, you need to work out a way to hold the order of rows if you want to retain it.

This discussion has been closed.