Editable Grid - Need a solution to update sort id's

Certified Associate Developer

Hi Everyone ,

Need your help in solving below problem . 

I have a requirement where i can insert data in between any rows but Type will always be Manager.  When i add new row, i need to generate a new id and want to update/increment sort id's  of all the rows which has Type as Manager accordingly.

For example - I added a row after id = 3 or at 4th place  so my new row will have id = 6 , Type = Manager and sort id = 2 . Also, sort id for last row which has Type='Manager' gets updated with 3 .

Thanks in advance

  Discussion posts and replies are publicly visible