This is a migrated thread and some comments may be shown as answers.

Reorder nodes in bound mode

1 Answer 70 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 11 Jul 2013, 12:30 PM
Hi Telerik support,
When i try to reorder elements in a treeview, everithink works fine, but the droped item allways goes to the bottom of the node, not to the correct place between other two elements .
I saw that this is the same behavior with your demo app in TreeView-->Populate With Data --> Self Reference  section , but need to know is it some way to acheeve correct reorder functionality when bind treeview with some external data.

EDIT: Additionally, SortDescriptors also doesn't work in this scenario.

Regards,
Martin

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 16 Jul 2013, 01:05 PM
Hi Martin,

Thank you for writing.

The desired functionality cannot be achieved in bound mode because when you are moving the SubNode from one ParentNode to another the tree view is not making any actual changes to the data behind, thus the tree view does not have the proper index for the dragged node. RadTreeView is visual representation of the data and for this reason it does not know where to insert or how to arrange the nodes. 

Do not hesitate to contact us if you have other questions.

Regards,
Dimitar
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Treeview
Asked by
Martin
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or