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

Binding Dataset with ParentIDMember and Relation

2 Answers 108 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Mathias Andersson
Top achievements
Rank 1
Mathias Andersson asked on 04 Jun 2010, 07:39 AM
Hi,
Im evaluating the telerik treeview component and trying to get it to work with a dataset, ParentIDMember and Relation but i just can't get it to work with both ParentIDMember and relations between multiple tables in the dataset. One at a time works.

The dataset contains two tables.

One folders table with folderid, parentfolderid and foldername columns. This table work find to bind with the treeview using the ParentIDMember to get a hierarchy treeview of the folders.

The second table contains data that should be found in a specific folderid with two columns of FolderID and ObjectName. The treeview shows the relational data if i do not use the ParentIDMember property on the treeview, but then i dont get the hierarchy of the folders in the view and the ObjectName doesnt show up at all when using the ParentIDMember property.

Should this work or do i have to work with ParentIDMember OR relations between tables to show hierarchy treeview of data?

//Mathias

2 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 10 Jun 2010, 04:20 AM
Hi Mathias Andersson,

Thank you for writing.

The ParentID property and relations collection are separate types of data binding. ParentID only makes sense in self-referencing data binding while the relations are only applicable when binding to separate related entities. Please refer to our online documentation on self referencing and related binding.

Write again if you have other questions.

Kind regards,
Victor
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Stefan
Telerik team
answered on 23 Mar 2011, 04:30 PM
Hello Mathias,

Please note that in Q1 2011 we have introduced a major upgrade of RadTreeView control, which is now virtualized and fully customizable. Feel free to download the latest release and try it out. For more information on our latest release refer to this blog post.

Best wishes,
Stefan
the Telerik team
Tags
Treeview
Asked by
Mathias Andersson
Top achievements
Rank 1
Answers by
Victor
Telerik team
Stefan
Telerik team
Share this question
or