Rearrange Data Rows

I want to be able to rearrange my list of items by just dragging on the row with my finger up or down. Right now the data is displayed in the order in which it is entered, and there seems to be no way to move it up or down the list. Any ideas how to accomplish this?

The type of task app Iโ€™m building requires that the data can be easily rearranged on the list.

0 8 840
8 REPLIES 8

Drag and drop interface is generally not supported at this moment.

But it is depending on your exact requrements in terms of what you want to do .
do you want to reorder the row ? Do you want to swap the row around to reorder? Or if you have some sort of groupings list view, do you want to move the item to another groups ?

I do have groups, but my main concern is moving the items within a group. if drag-and-drop is not supported, what are alternative ways to accomplish moving items in the interface?

I only know the tricks to swap the row orders within the group, but it is little complicated. to achieve. Not a easy way to do it.

Indeed, the method can be complex. Youโ€™ll need an actual column to hold the sorting number (two actually if youโ€™ve got groupings), and also youโ€™ll need to create a few actions to adjust these sorting numbers.

This will require at least a video, if not a sample appโ€ฆ Iโ€™ll add this to my list of videos to put out and tag here when its done.

yes, a video would be highly appreciated.

Iโ€™m trying to create a very simple Program Schedule Managing App but none of the task or project management apps I tried can do what I need it to do.

Reordering item in a group will work just fine for me, because I can always go back to modifying the record and put it in another group.

Im wondering if one way it could be rearranged is if you set a hidden number to each record from 1-10. If the record is set to 1, then it appears first on the list, if it set to 10 it appears last (assuming you have ten items in the list).

MultiTech
Participant V

Essentially yes, you need to create a field that will hold the sort number. Then you create a series of actions to +1/-1 to entries.

But thereโ€™s all sorts of extra complicatedness you need to consider

  • What happens when you delete something?
  • What happens when you add?
  • When you change one number up, you then need to change the one below it as well.
  • etc.

Thereโ€™s just all thisโ€ฆ extra stuff youโ€™re not thinking about until you use it. Then youโ€™re like, โ€œOh crap! I completely forgot about XYZโ€. And when you get into the solution youโ€™re likeโ€ฆ HOLY CRAP! This is WAY more complicated than I thought. (^_^)

I think there was something like 10 actions I made last time to make this work smoothly.


Youโ€™ve also got to consider groups in there too. You just canโ€™t give โ€œitem number 1 in group1โ€ the same sorting number as โ€œitem number 1 in group 2โ€ - that being 1.

  • If you ever tried to sort by that, with something that didnโ€™t have the grouping, things would be all messed up.

So youโ€™ve got to take group sorting into consideration as well.

MultiTech
Participant V

Got a sample app put together that highlights everything involved; see here for more details.

Top Labels in this Space