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

Browse and Check a TreeView

1 Answer 29 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Francis
Top achievements
Rank 1
Francis asked on 09 May 2012, 03:20 PM
Hello evryone,

I built a Tri-State treeview from self referencing table and all it's ok, now i want save in a another table the list of items with "ToggleState" = "on" and i don't know how can I do it.

Please, do you have any example that can help me.
Thank you.

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 14 May 2012, 07:46 AM
Hi Francis,

 So you need to iterate over the RadTreeViewItems, create a collection of the checked items save this collection to the database? You can start with this help article showing a possible way to traverse your tree.
When iterating, the RadTreeViewItem.DataContext property will give you the business object that is inside the RadTreeViewItem. I guess you will be able to finish the rest - saving a flat collection of DB objects in the DB. 

Greetings,
Petar Mladenov
the Telerik team

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

Tags
TreeView
Asked by
Francis
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or