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

Query: Ajax call back on tree node check uncheck

1 Answer 24 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Hemangajit Dutta
Top achievements
Rank 1
Hemangajit Dutta asked on 16 Sep 2009, 02:02 PM
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

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Sep 2009, 04:49 AM
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.
Tags
TreeView
Asked by
Hemangajit Dutta
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or