Page 1 of 1

Drag & Drop ordering

Posted: Fri Jul 01, 2016 5:41 am
by Digipark

Is there a plugin, method, etc., to do drag and drop ordering of a table? I'm looking for something more user-friendly than manually entering a number inrto a column for the order you want a row to be displayed in.

What I'm looking for is the ability for someone to drag and drop the order of RECORDS in a table. I can make a field as an 'order' column but what I'd like is an easy way for the records to be ordered. Is that ability in phpMaker, or is there an Extension someone has written that does that?

Thanks...
John


Re: Drag & Drop ordering

Posted: Sun Jul 03, 2016 10:50 am
by mobhar

Drag-and-drop the order of records is not supported. However, you can change the order of records by clicking on the table header of a column/field in the List Page; whether Ascending (ASC) or Descending (DESC).


Re: Drag & Drop ordering

Posted: Sun Jul 03, 2016 5:36 pm
by gtasic

Hi,

this is exactly what I am looking for. Anybody has idea how to acomplish?
If there is plugin(jQuery...) how to implement in phpmaker?


Re: Drag & Drop ordering

Posted: Sun Jul 03, 2016 7:21 pm
by Adam

It's possible to do it using jQuery and some additional coding to handle the resequencing within the DB, but it's definitely not a "drop-in" solution.

If you really need it now then look at the various jQuery solutions and you should be able to hack something together.


Re: Drag & Drop ordering

Posted: Sat Dec 09, 2017 5:22 am
by netenken1

I am also finding solution about change/resorting record 'showorder' field by drag and drap generated UI script...

I've found a plugin is the solution, url = johnny.github.io/jquery-sortable/

But I think we don't need the 'supports nested containers' , just sortable function by drag and drop already pretty well


Re: Drag & Drop ordering

Posted: Sat Dec 09, 2017 1:35 pm
by kirondedshem

I got a bit interested so I googled and landed on a library called "HTML5 Sortable" at url = github.com/lukasoppermann/html5sortable. They have an example in thier docs of a sortable table at the botttom.

For those still interested Ive pasted solution in submitted tips as "Drag and Drop reodering of Table records" on viewtopic.php?f=18&t=41539