Binding Child Items to Parent

4 posts, 1 answers
  1. Shrikant
    Shrikant avatar
    38 posts
    Member since:
    Jul 2011

    Posted 31 May 2012 Link to this post

    Hi Telerik Team,

    I have a table structure like ParentFolderID & ChildFolderID. The Data looks like below :
    106     107
    106     118
    0         106
    107     108
    107     109
    107     113
    106     122
    107     115
    107     111
    Here 0 is the Root for Tree.

    Now, in my one of ASP.Net project, we have used Asp.Net Ajax Tree View control.
    & I have binded above data using properties like 
     RadTreeView1.DataFieldID = "ChildFolderID"
     RadTreeView1.DataFieldParentID = "ParentFolderID" 
    RadTreeView1.DataTextField = "FolderName"
     RadTreeView1.DataValueField = "FolderID"
    & This works great.

    I found little bit hard with Silverlight TreeView Control to bind such data.

    Can you please help me out here, How can I bind data like above table structure in Parent Child format to Silverlight Tree View Control?

    Thanks
  2. Shrikant
    Shrikant avatar
    38 posts
    Member since:
    Jul 2011

    Posted 01 Jun 2012 Link to this post

    I found the solution for Above :

    This Article helps me : RadTreeView bound to self-referencing table

    Thanks
     
  3. DevCraft banner
  4. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 01 Jun 2012 Link to this post

    Hello Shrikant,

    I am glad that you found a solution. However, please note that this article is a basic sample and if you need to implement an add/remove or drag/drop functionality in the RadTreeView, you'll have to extend the self-referencing data implementation - in this forum thread you can find more information and a sample solution.

    Greetings,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  5. Shrikant
    Shrikant avatar
    38 posts
    Member since:
    Jul 2011

    Posted 04 Jun 2012 Link to this post

    Thanks Tina,

    I was going to use Drag & Drop in TreeView, Thanks for the attention.
    The article don't work for Drag & Drop functionality, Its just for Self Ref. Data Binding.


    Thanks Again
Back to Top