Reading radTreeNodes

2 posts, 0 answers
  1. chithuraj
    chithuraj avatar
    18 posts
    Member since:
    Mar 2009

    Posted 29 Jul 2009 Link to this post

    Hi,
        I have a Parent Node with node value -0,After that i have  have bind the Tree view node values from the Database vased on Display order id field.
        My problem is when i drag and drop the Nodes it should be update the fields in Database.

     What i need is , In button clickevent , How could i read all the nodes and values in readtree.

    Please help !!
    Any help will be Appreciated!!
    Thanks and regards!
    chithuraj.j
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Jul 2009 Link to this post

    Hi Chithuraj,

    Give a try with following code snippet and see whether it helps in getting all the nodes in RadTreeView.

    C#:
     
    protected void Button2_Click(object sender, EventArgs e) 
        foreach (RadTreeNode node in RadTreeView1.GetAllNodes()) 
        { 
            string text = node.Text.ToString(); 
            string value = node.Value.ToString(); 
            Response.Write(text); 
            Response.Write(value); 
        } 

    Shinu.
Back to Top