This is a migrated thread and some comments may be shown as answers.

Selected Node count , client side

1 Answer 117 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Manoj
Top achievements
Rank 1
Manoj asked on 16 Mar 2009, 12:06 PM
Hi Team,
         I am trying to get the seected node count . to captuer this I have used the bellow code snipet . But it is giving error as " Object doesn't support this property or method" .  Can you please tell why this is happening .


function

onClientNodeClickedHandler(sender, eventArgs)

 

{

 

var tree = <%= rtvDetailData.ClientID %>;

 

 

var nodeCount = "";

 

 

for (var i = 0; i < tree.GetSelectedNodes().length; i++)

 

{

nodeCount += tree.GetSelectedNodes()[i].Text +

", ";

 

}

alert(nodeCount);

 

}



Regards
Manoj

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 16 Mar 2009, 12:34 PM
Hello Manoj,

I strongly recommend you review the client-side programming help topics for RadTreeView:
Basics
Events
RadTreeView client-side API
RadTreeNode client-side API

Dealing with selected nodes is covered in the RadTreeView client-side API section.

All the best,
Albert
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TreeView
Asked by
Manoj
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or