RATreeView
RATreeView copied to clipboard
Re-order rows feature
Hi,
Seems there is no feature for reordering rows.
+1
This was added to RATreeView in version 0.9.0.
Closing. Feel free to reopen if necessary.
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.
I have gotten reordering working. It is in a pull request.
I couldn't succeed reordering with moveItemAtIndex:inParent:toIndex:inParent: method Any tips ?
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.
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.