radTreeview Looping

9 posts, 0 answers
  1. Kiran
    Kiran avatar
    6 posts
    Member since:
    May 2009

    Posted 08 Dec 2009 Link to this post

    Hi All,

    I am facing a problem while looping through the radtreeview.

    My radtreeview structure is as below:

    folder A
         folder B
                 folder C
    Folder D
          Folder E
                 Folder F
                          Folder G
                                  ---------------------N Number of childs
    Now i want to loop through the radtreeview,how can i get this? I want some generalised function that will loop through radtreeview.

  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8121 posts
    Member since:
    Sep 2012

    Posted 09 Dec 2009 Link to this post

    Hi Kiran,

     You can use the GetAllNodes() method and a foreach statement:

    foreach (RadTreeNode node in RadTreeView1.GetAllNodes())
    {

    }

    Regards,

    Atanas Korchev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

  3. Shiva
    Shiva avatar
    1 posts
    Member since:
    Sep 2010

    Posted 13 Sep 2010 Link to this post

    Dear Telerik Admin,

    Is GetAllNodes() function available in your trial (evaluation) version as well??

    Regards,
    Shiva

  4. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts
    Member since:
    Mar 2013

    Posted 14 Sep 2010 Link to this post

    Hi Shiva,

    Yes, it is! There is no functional difference between the trial and licensed version!
    Hope you will enjoy working with our controls!


    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

  5. Johnny
    Johnny avatar
    86 posts
    Member since:
    Dec 2010

    Posted 22 Mar 2011 Link to this post

    Dear Telerik Admin,

    Are the 'GetAllnodes' function available for WinForm?

    It said 'GetAllNodes' is not a member of 'Telerik.WinControls.UI.RadTreeView'

    Im using Q2 2010 Telerik for WinForm with VB.NET 2010

  6. Stefan
    Admin
    Stefan avatar
    2255 posts
    Member since:
    Sep 2012

    Posted 24 Mar 2011 Link to this post

    Hi Johnny,

    Thank you for writing.

    There is no such method in RadTreeView for WinForms. In order to get all nodes, you should traverse them recursively. Here is an example:

    void LoopNodes(RadTreeNodeCollection nodes)
    {
        foreach (RadTreeNode node in nodes)
        {
            //do smth with the node
     
            if (node.Nodes.Count > 0)
            {
                LoopNodes(node.Nodes);
            }
        }
    }

    I hope this helps. Please note that in Q1 2011 we have introduced a fully refactored version of RadTreeView with many improvements and additions. Feel free to download the latest release and try it.

    Kind regards,
    Stefan
    the Telerik team

  7. Johnny
    Johnny avatar
    86 posts
    Member since:
    Dec 2010

    Posted 04 Apr 2011 Link to this post

    Thank for the support. It's working.

  8. Stefan
    Admin
    Stefan avatar
    2255 posts
    Member since:
    Sep 2012

    Posted 07 Apr 2011 Link to this post

    Hi Johnny,

    I am glad that I could help. Should you have any other questions, do not hesitate to contact us.
     
    Regards,
    Stefan
    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

  9. sundar
    sundar avatar
    2 posts
    Member since:
    Apr 2011

    Posted 27 May 2011 Link to this post

    hello sir i m sundar,

                   i am using Q1 2010 version.how Can i get RadTreeList control?

                      thanks in advance

Back to Top