Hi,
I'm trying to find out how many nodes are in a tree view and for this i'm using the following code:
The number of nodes i get in 0.
I'm runnig this code for: http://demos.telerik.com/silverlight/#TreeView/HierarchicalTemplate
Am i doing something wrong?
Can someone give me another example of how can i know the number of nodes in a treeview?
Thanks !
I'm trying to find out how many nodes are in a tree view and for this i'm using the following code:
var myApp= Pages.TelerikTreeViewFor.SilverlightApp;
Telerik.WebAii.Controls.Xaml.RadTreeView tree= myApp.XTreeViewRadtreeview;
tree.InvokeMethod(
new
AutomationMethod(
"ExpandAll"
,
typeof
(
void
)));
IList<Telerik.WebAii.Controls.Xaml.RadTreeView> items = tree.Find.AllByType<Telerik.WebAii.Controls.Xaml.RadTreeView>();
int
nrNodes= items.Count();
Log.WriteLine(
"Number of nodes: "
+ nrNodes);
The number of nodes i get in 0.
I'm runnig this code for: http://demos.telerik.com/silverlight/#TreeView/HierarchicalTemplate
Am i doing something wrong?
Can someone give me another example of how can i know the number of nodes in a treeview?
Thanks !