Web Connection User Discussions
Drag/drop re-order?
Gravatar is a globally recognized avatar based on your email address. Drag/drop re-order?
  Michael Hogan (Ideate Hosting)
  All
  Sep 1, 2021 @ 07:57am

Right now I use dropdown lists to allow the web user to change the order of things in a list - on submit, I simply save the dropdown value with the listed record.

But I'd rather my users be able to use drag and drop. I have seen web controls that let you drag/drop to move html rows up and down within the browser, but none that allow me to change the record display order so the record remembers its new position - neither live nor on submit.

Has anyone discovered something to fit the bill?

Gravatar is a globally recognized avatar based on your email address. re: Drag/drop re-order?
  Rick Strahl
  Michael Hogan (Ideate Hosting)
  Sep 1, 2021 @ 11:36am

Years ago I built a VueJs Mover control for a project:

Vue Mover

It uses the sortable.js library to handle the sorting of items and dragging and dropping of items across controls. It's possible to use this outside of VueJs, but you do end up with the VueJs dependencies.

But might give you some ideas what you can do to build your own.

+++ Rick ---

© 1996-2021