Binding Dataset with ParentIDMember and Relation

3 posts, 0 answers
  1. Mathias Andersson
    Mathias Andersson avatar
    2 posts
    Member since:
    Aug 2012

    Posted 04 Jun 2010 Link to this post

    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?

  2. Victor
    Victor avatar
    1358 posts

    Posted 09 Jun 2010 Link to this post

    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,
    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.
  3. Stefan
    Stefan avatar
    2911 posts

    Posted 23 Mar 2011 Link to this post

    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,
    the Telerik team
Back to Top