This is a migrated thread and some comments may be shown as answers.

Checkbox in Treeview

3 Answers 64 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Venkat
Top achievements
Rank 1
Venkat asked on 03 Sep 2010, 11:00 AM
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...

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Sep 2010, 12:02 PM
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.
0
Venkat
Top achievements
Rank 1
answered on 04 Sep 2010, 06:53 AM
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
0
Nikolay Tsenkov
Telerik team
answered on 08 Sep 2010, 04:47 PM
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
Tags
TreeView
Asked by
Venkat
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Venkat
Top achievements
Rank 1
Nikolay Tsenkov
Telerik team
Share this question
or