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.
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).
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.
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.
So youโve got to take group sorting into consideration as well.
Got a sample app put together that highlights everything involved; see here for more details.
User | Count |
---|---|
60 | |
25 | |
13 | |
12 | |
6 |