Reorder row tabes with data replacemnt

1 Answer 74 Views
Grid
Missing User
Missing User asked on 25 Oct 2021, 08:40 AM | edited on 25 Oct 2021, 08:41 AM
Hey everyone, starting from Knowledge Base - Row Reordering, I copied the handler function to my project and I got it to work almost perfectly. 
I have however an extra need: when I reorder the row I'd like the Order field to change for all the previous fields if needed. Starting from a example like this:



Example: I move 1 to 5 and the other rows see their order field changed to reflect the previous status:
1 --> 5
2 --> 1
4 --> 2
5 --> 4

Link to a Stackblitz that you can use

1 Answer, 1 is accepted

Sort by
0
Accepted
Missing User
answered on 29 Oct 2021, 01:38 PM
I was able to find a workaround working inside the various "drag" events
Tags
Grid
Asked by
Missing User
Answers by
Missing User
Share this question
or