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

Collecting each displaymember.text in the order of the RadTreeView

2 Answers 57 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 05 May 2012, 08:15 PM
Hi,
Using a radtreeview with an access db with my data in a recursiv datatable, I would like to go through each element of the radtreeview to retrieve the displaymember and do some additional processes. Something like:
foreach(.... )
{
Parent -> go through each child of it -> if there are grandchildren-> go through each grandchild of child...
get_the_displayname_and_print_it()
.... do whatever...
}
and so on.
Can someone give me some support in this issue?
Thanks
Karl

2 Answers, 1 is accepted

Sort by
0
Accepted
Boryana
Telerik team
answered on 08 May 2012, 03:28 PM
Hello Karl,

Thank you for writing.

The attached sample project contains a recursive function that iterates all nodes of a RadTreeView. Let me know if you have further questions.

Greetings,
Boryana
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Karl
Top achievements
Rank 1
answered on 10 Jun 2012, 06:53 PM
Boryana,

A simple and beautiful solution!
Thank you for the example!

Karl
Tags
Treeview
Asked by
Karl
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Karl
Top achievements
Rank 1
Share this question
or