Structure of binding collection

2 posts, 0 answers
  1. Alejandro
    Alejandro avatar
    1 posts
    Member since:
    Apr 2017

    Posted 27 Nov 2017 Link to this post

    I just switched to the TreeListView from TreeView and I have a couple of simple questions. 


    My collection is structured in a hierarchial type of structure. So there is only 1 item with children, children of children, children of children of children, etc. 


    Is this the best way to format the collection or should I keep the collection "flat?"


    I want to be able to support drag/dropping and persisting an order as the user drags/drops.  All of the examples I've seen seem to be using a flat type of collection so it is easy to use the TreeListView index.  






  2. Dilyan Traykov
    Dilyan Traykov avatar
    813 posts

    Posted 30 Nov 2017 Link to this post

    Hello Alejandro,

    The RadTreeListView is best used with hierarchical collections which are of the same data type. With this said, using a hierarchical structure is the advised approach.

    As for the Drag and Drop functionality, please have a look at the respective demo in the WPF Controls Samples if you have not done so already. I believe it demonstrates just the setup you're looking for.

    Please let me know whether I managed to answer your questions. If that is not the case, please elaborate so that I can better assist you. I look forward to your reply.

    Dilyan Traykov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top