32
Views
1
Comments
Solved
[DragulaJS] Save the new order of each list in database
dragulajs
Reactive icon
Forge asset by Henrique Leite
Application Type
Reactive

Hi ,

I sorted the default lists like this, but sorted and dragged order of data is not be saved in my database.

I want to save the new sorted table lists in my database.


How do i get the new index of each element and save it in my database in this DragulaJS component?

I wonder if it is possible to implement this kind of function....

Would you happen to know how to do it?

It'd be nice if you could tell me about that with OML.


Regards,

2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

Hi Tsubasa,

Based on the explanation mentioned in the HowToUse|DragulaJS page (last section), you can define an OnNotify event handler which will get you all the state change information of the item on drag and drop. Store the relevant event handler input parameters value in the database to retain the latest state change of the list item/record.

Check this out: HowToUse | DragulaJS

I hope this helps you!


Kind regards,

Benjith Sam

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.