All Products
Demos
Pricing
Services
Blogs
Docs & Support
Search
Shopping cart
Login
Contact Us
Get A Free Trial
close mobile menu
Telerik Forums
/
UI for ASP.NET AJAX Forum
/
TreeView
/
Reading radTreeNodes
Cancel
Telerik UI for ASP.NET AJAX
Resources
Buy
Try
Feed for this thread
2 posts, 0 answers
chithuraj
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
Shinu
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
Close