1
votes

How can I let the user reorder the rows of a list in a flex mobile app?

You know, you see it a lot in native iOS apps. Usually you hit an Edit button at the top of a list view. Each row then gets a thumb icon that lets you move the rows around in the list.

This might be totally obvious, but I'm writing my first mobile app in flex and can't seem to find an example anywhere.

Cheers.

1

1 Answers

0
votes

Spark List control supports Drag and Drop, besides dragging and dropping with the list itself, you can also do so between two different list controls. To enable the feature, you could set dragEnabled, dragMoveEnabled, dropEnabled properties to true, more details may be found in this help document.

To enable the feature as you described, you could set those drag and drop properties to true when the edit mode is enabled. Optionally, you could also display a drag handler (as decorator).

Update: For mobile application, there is a write-up on how to get around with mobile limitation of drag-and-drop.