Collecting each displaymember.text in the order of the RadTreeView

3 posts, 1 answers
  1. Karl Golling
    Karl Golling avatar
    226 posts
    Member since:
    Jun 2005

    Posted 05 May 2012 Link to this post

    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. Answer
    Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 08 May 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Karl Golling
    Karl Golling avatar
    226 posts
    Member since:
    Jun 2005

    Posted 10 Jun 2012 Link to this post

    Boryana,

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

    Karl
Back to Top