Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Treeview > Multiple parents
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Multiple parents

Feed from this thread
  • Neil avatar

    Posted on Jun 20, 2011 (permalink)

    We have a tree where a node can have multiple parent nodes. It is a county list. Here is just one example of many where a country can belong to several geophysical or geopolitical groups.

    Europe -> Belgium
    EU -> Belgium
    Benelux -> Belgium

    Can the TreeView handle this? If so how?

  • Posted on Jun 20, 2011 (permalink)

    Hello Neli,

    Please check this help article about hierarchical databinding.

    Thanks,
    Shinu.

  • Neil avatar

    Posted on Jun 20, 2011 (permalink)

    So it can't be done then.

  • Veronica Veronica admin's avatar

    Posted on Jun 22, 2011 (permalink)

    Hi Neil,

    Actually the help article that Shinu gave you describes that can be done. If you create a table Countries which will play the role of the Categories table (in your case Belgium) and other table Continents (in your case Europe, EU, etc.) which will play the role of the Products table - you can easily use the ID of the Belgium as ParentID for the binding of the RadTreeView.

    Hope this helps.

    Best wishes,
    Veronica Milcheva
    the Telerik team

    Consider using RadControls for ASP.NET AJAX (built on top of the ASP.NET AJAX framework) as a replacement for the Telerik ASP.NET Classic controls, See the product support lifecycle here.

  • Neil avatar

    Posted on Jun 23, 2011 (permalink)

    Thanks for your comment.

    I read "A unique identifier must be assigned to the 
    DataFieldID;"
    That leads me to believe that the node for Belgium cannot therefore exist as a child of more than one parent node.

  • Veronica Veronica admin's avatar

    Posted on Jun 23, 2011 (permalink)

    Hello Neil,

    Your DataFieldID will be unique as there you will present the ID-s of the Countinents. Belgium will stay with it's ID under the DataParentFieldID. Please let me know if you need further help.

    All the best,
    Veronica Milcheva
    the Telerik team

    Consider using RadControls for ASP.NET AJAX (built on top of the ASP.NET AJAX framework) as a replacement for the Telerik ASP.NET Classic controls, See the product support lifecycle here.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Treeview > Multiple parents