Checkbox in Treeview

4 posts, 0 answers
  1. Venkat
    Venkat avatar
    5 posts
    Member since:
    Jul 2010

    Posted 03 Sep 2010 Link to this post

    My doubt is

    • How can i get the id of only checked parent and child items
    • How can i store that id in SQL

    The table structure to store is show in attachement. I need to store the checked values and id in this structure

    How can i?  Please help...
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 03 Sep 2010 Link to this post

    Hello,


    Iterate through the CheckedNodes collection and get the ID of the nodes which are checked.

    cs:
    foreach (RadTreeNode node in RadTreeView1.CheckedNodes)
    {
        string value = node.ID.ToString();
    }

    After getting the IDs, prepare the sql query and execute it if you want to update the db.

    [I guess, you missed attachment]


    -Shinu.
  3. Venkat
    Venkat avatar
    5 posts
    Member since:
    Jul 2010

    Posted 04 Sep 2010 Link to this post

    Thanks shinu,

    But please tell me how can i store the selected id and values in this database structure (Structure Attached).

    I have binded using the same format. Now i need to store the selected child and parent nodes.

    Please help
  4. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 08 Sep 2010 Link to this post

    Hi Venkat,

    Could you, please, be a bit more specific about the DataTable that you intend to store the id's in?
    For example, what does MenuId stands for? Probably it will be better if you can explain in a bit more detail, what exactly is the scenario that you try to implement.

    Hope that soon we will solve this problem!


    Regards,
    Nikolay Tsenkov
    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
Back to Top