Query: Ajax call back on tree node check uncheck

2 posts, 0 answers
  1. Hemangajit Dutta
    Hemangajit Dutta avatar
    4 posts
    Member since:
    Aug 2008

    Posted 16 Sep 2009 Link to this post

    Hi,
         Greetings. We are using Telerik Treeview with check box functionality. We need to make some Ajax calls when we uncheck the check box for doing some validations. Can you please provide me with some code sinppets on how to achieve that functionality.

    Thanks
    Hemangajit
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 16 Sep 2009 Link to this post

    Hi Hemangajit,

    Have you tried attaching OnClientNodeChecking/OnClientNodeChecked client events and invoke the Ajax call?

    JavaScript:
     
    <script type="text/javascript"
    function OnClientNodeChecking(sender, args) 
        if(args.get_node().get_checked()) 
        { 
            alert("UnChecking"); 
            // Ajax call  
        } 
    </script> 

    -Shinu.
Back to Top