Reorder nodes in bound mode

2 posts, 0 answers
  1. Martin
    Martin avatar
    2 posts
    Member since:
    Mar 2013

    Posted 11 Jul 2013 Link to this post

    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
  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 16 Jul 2013 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top