Bind TreeView To SQL DB with N - Level

2 posts, 0 answers
  1. ali
    ali avatar
    1 posts
    Member since:
    Jul 2015

    Posted 14 Jul 2015 Link to this post


    I cant Find Sample Of Bind TreeView To SQL Server DB with All Functions (Insert - Update - Delete) in N - Level Support.

    can You Help Me?


  2. Dess
    Dess avatar
    1562 posts

    Posted 16 Jul 2015 Link to this post

    Hello Ali,

    Thank you for writing.

    I have prepared a sample project demonstrating how to bind RadTreeView to 3-level hierarchical data. When clicking the button its depth is changed to 4. You can follow similar approach to bind to n-level hierarchy. It is just necessary to construct correctly the DisplayMember and ValueMember properties. Additionally, in order to allow add, update, remove operation, you should set the following properties to true:
    this.radTreeView1.AllowAdd = true;
    this.radTreeView1.AllowEdit = true;
    this.radTreeView1.AllowRemove = true;
    this.radTreeView1.AllowDefaultContextMenu = true;

    I hope this information helps. Should you have further questions, I would be glad to help.
    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 Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top