RootRelationDisplayName is depricated

2 posts, 0 answers
  1. Claude
    Claude avatar
    63 posts
    Member since:
    Apr 2009

    Posted 02 Jun 2011 Link to this post

    I see that the RootRelationDisplayName is depricated and will not be supported in future releases.  What is the replacement for this function?
  2. Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 07 Jun 2011 Link to this post

    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.

    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.
Back to Top