Could you elaborate a bit on your requirement? Is the tree generated from the folder system, or the other way around? Also, where is the new folder created and what action should take place in this case?
In general if you want to go through all nodes of the treeview, there are a couple of ways you can do that:
1. You can call the GetAllNodes()
function of the treeview, which gives you a collection of all the nodes inside the treeview. Each node has a ParentNode
property which you can use to get a reference to the node's parent.
2. You can use recursion. For instance:
sender, EventArgs e)
(node.Nodes.Count > 0)
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed