How to add a condition for datatable rowreorder
How to add a condition for datatable rowreorder
khaledbaba
Posts: 3Questions: 3Answers: 0
I am using the datatable library to display a list of tasks, I have implemented a function that allows to reorder tasks with the RowOrder function, but I want to make a control that allows to order a task only if the date of the task is below the target date.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @khaledbaba ,
Unfortunately that's not possible right now with RowReorder. There are events that can be listened for, but they can't reject the move or manually flip the rows back with an API method. I've created an enhancement request for this (#559), and we'll update this thread when a solution is available.
Cheers,
Colin