This is a migrated thread and some comments may be shown as answers.
Reading radTreeNodes
1 Answer 14 Views
This is a migrated thread and some comments may be shown as answers.
chithuraj
Top achievements
Rank 1
chithuraj asked on 29 Jul 2009, 12:57 PM
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

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 30 Jul 2009, 10:23 AM
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.
Asked by
chithuraj
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or