Client Side Event RadTreeView Expand And Colapse

2 posts, 0 answers
  1. saad
    saad avatar
    19 posts
    Member since:
    Nov 2010

    Posted 24 Aug 2011 Link to this post

    Hello Telerik Team,
              I have a RadTreeView in which i want to trigger an event in Expand and Colapse
             i tried lot of jquery code but i cant access
    jQuery('li.rtLI div > span:eq(2)').live('click', function () {
        //xyz
    });
    jQuery('li.rtLI div > span.rtPlus').live('click', function () {
        //xyz
    });
     I hope this helps.

    Regards,
  2. saad
    saad avatar
    19 posts
    Member since:
    Nov 2010

    Posted 24 Aug 2011 Link to this post

    function ClientNodeExpanded(sender, eventArgs) {
            var node = eventArgs.get_node();
            alert("Parent node " + node.get_text() + " is expanded to show " + node.get_nodes().get_count()+ " child nodes");
        }
     
     
    <telerik:RadTreeView ID="RadTreeView1" runat="server" Height="500" Width="263" OnNodeExpand="RadTreeView1_NodeExpand" OnClientNodeExpanding="ClientNodeExpanded">
     
    </telerik:RadTreeView>
Back to Top