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

Structure of binding collection

1 Answer 63 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 27 Nov 2017, 05:54 PM

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.  

 

Thoughts?

Thanks, 

 

     

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 30 Nov 2017, 10:58 AM
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.

Regards,
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.
Tags
TreeListView
Asked by
David
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or