Remove all nodes in Serverside

2 posts, 0 answers
  1. Telerikuser
    Telerikuser avatar
    35 posts
    Member since:
    May 2009

    Posted 28 Jul 2009 Link to this post

    I am trying to remove all nodes in server side but it is not working. Anyone have a sample code?

    My code is like this

    foreach

     

    (RadTreeNode node in mytreeView.GetAllNodes())

     

    {

        node.Remove();

    }


    Thanks




  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 Jul 2009 Link to this post

    Hello,

    Try the code " RadTreeView1.Nodes.Clear(); " in order to remove all nodes from treeview.

    -Shinu.
Back to Top