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

RootRelationDisplayName is depricated

1 Answer 15 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Claude
Top achievements
Rank 1
Claude asked on 02 Jun 2011, 05:59 AM
I see that the RootRelationDisplayName is depricated and will not be supported in future releases.  What is the replacement for this function?

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 07 Jun 2011, 03:30 PM
Hello Claude,

To bind relational data to the new version of RadTreeView control, you must setup only datasource and relation bindings. Here is a small example:

this.radTreeView1.DataSource = this.artistsBindingSource;
this.radTreeView1.DisplayMember = "ArtistName";
this.radTreeView1.RelationBindings.Add(new RelationBinding(this.albumsBindingSource, "AlbumName", "ArtistID", "ArtistID", "AlbumID"));
this.radTreeView1.RelationBindings.Add(new RelationBinding(this.songsBindingSource, "SongName", "AlbumID", "AlbumID", "SongID"));

More information you can find in our online documentation.

I hope this information is useful. Let me know if you need further assistance.

Greetings,
Julian Benkov
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
Treeview
Asked by
Claude
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or