Drag and drop/swap rows and then save changes to database.
Drag and drop/swap rows and then save changes to database.
Chrom
Posts: 44Questions: 15Answers: 1
Is it possible to drag and drop or swap rows by using the table interface and then save the changes in the database?
What extensions would be needed and what kind of function would I need to hook into to save the changes to database?
Or is there a different way recommend for swapping and saving rows?
(I use datatables mainly in wordpress if that is of any interest.)
Answers
The Editor has built in support for rowReorder. See this example. If you don't have Editor you can use the
row-reorder
to store the changes via a jQuery ajax() request.Kevin