RATreeView icon indicating copy to clipboard operation
RATreeView copied to clipboard

Re-order rows feature

Open clintebb opened this issue 10 years ago • 7 comments

Hi,

Seems there is no feature for reordering rows.

clintebb avatar Dec 14 '14 08:12 clintebb

+1

mralexgray avatar Jan 21 '15 14:01 mralexgray

This was added to RATreeView in version 0.9.0.

Closing. Feel free to reopen if necessary.

Augustyniak avatar Nov 14 '15 21:11 Augustyniak

Maybe I wasn't entirely clear when I I closed this ticket.

There are no plans to add built in feature for row rendering. I added moveItemAtIndex:inParent:toIndex:inParent: method so that it is possible to implement reorder feature by adding some custom logic to the RATreeView. Unfortunately, as for now I don't see a way how could I add reordering feature in a way that would make it generic and possible to use it in different cases.

Augustyniak avatar Nov 28 '15 13:11 Augustyniak

I have gotten reordering working. It is in a pull request.

etresoft avatar Jan 18 '16 21:01 etresoft

I couldn't succeed reordering with moveItemAtIndex:inParent:toIndex:inParent: method Any tips ?

barisatamer avatar May 25 '16 20:05 barisatamer

I haven't looked at it for a while. You can clone my fork https://github.com/etresoft/RATreeView

I fixed a couple of bugs in the original that would prevent it from working. Then I added move support to the underlying UITableView and then added some delegate methods at the treeView layer. You should be able to extract it from the pull request.

etresoft avatar May 26 '16 04:05 etresoft

I haven't looked at it for a while. You can clone my fork https://github.com/etresoft/RATreeView

I fixed a couple of bugs in the original that would prevent it from working. Then I added move support to the underlying UITableView and then added some delegate methods at the treeView layer. You should be able to extract it from the pull request.

How do you move the items physically on the screen? I tried your fork and didn't manage to move items.

albert0m avatar Feb 21 '20 12:02 albert0m