Treeview Nodeclick javascript

3 posts, 0 answers
  1. cv
    cv avatar
    80 posts
    Member since:
    Mar 2007

    Posted 03 Nov 2008 Link to this post

    Hi,

    i am going to validate some data on treeview node click,

    for that how can i call javascript?

    pls tell me the solution.

    thanks,
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 05 Nov 2008 Link to this post

    Hi,

    Call the javascript  in the OnClientNodeClicked event of RadTreeView.

    ASPX:
       <telerik:RadTreeView ID="RadTreeView1" runat="server"  OnClientNodeClicked="OnClientNodeClicked"   > 
                  ......... 

    JS:
     <script type="text/javascript"
        function OnClientNodeClicked(sender, eventArgs) 
        { 
         var node = eventArgs.get_node();     
         alert("You clicked " + node.get_text()); 
        } 
    </script> 

    OnClientNodeClicked

    Thanks
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. AL
    AL avatar
    40 posts
    Member since:
    May 2008

    Posted 19 Mar 2009 Link to this post

    Thanks CV and Shinu.
Back to Top