Cancel order, while moving a row
Cancel order, while moving a row
Da9L
Posts: 4Questions: 2Answers: 0
in RowReorder
Is it somehow possible to cancel a reordering process, while in the middle of it? An example being, you want to move a row, and click and drag on the handle to move it, but while moving, you wish to cancel it, by pressing the esc key, and have the row fall back to its starting position.
Answers
This thread should help, it's asking the same thing.
Cheers,
Colin
I didn't see a specific solution in that thread
I have however found a solution that I'm fine with. I'm using the pre-row-reorder event and simply refreshing the whole page on the esc key press.
You could probably do something like redrawing the table etc. but this is good enough for me :-)
Nice, thanks for posting - I'm sure that'll be useful for others,
Colin