Selected Node count , client side

2 posts, 0 answers
  1. Manoj
    Manoj avatar
    75 posts
    Member since:
    Dec 2008

    Posted 16 Mar 2009 Link to this post

    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
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 16 Mar 2009 Link to this post

    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.
Back to Top