I think the easiest way would be to get the TreeView object and then with the OnClientNodeExpanding use the .get_level() method with the node and cancel the event if it's too far down.
Snagging the TreeView from the FileExplorer would be the following code:
var myTreeView = $find("<%= FileExplorer1.TreeView %>");
0
Tervel
Telerik team
answered on 17 Sep 2009, 07:53 AM
Hi all,
The RadFileExplorer provides an OnClientLoad event, which you can use.
In this event you can easily get access to the treeview by using its client-side get_tree method - and proceed further by using the RadTreeView to achieve what you need. E.g.
function OnClientLoad(sender, args)
{ var tree = sender.get_tree();
//TODO: Proceed further with implementing your code
}