开发者

ASP.NET MVC | How to fire Ajax when I click in combobox in Telerik TreeView

开发者 https://www.devze.com 2023-02-06 13:34 出处:网络
I am using Telerik TreeView control. I set up it 开发者_如何学编程to use check boxes. When I click in combobox I want to fire Ajax request to action in controller. Then I want to reload some part page

I am using Telerik TreeView control. I set up it 开发者_如何学编程to use check boxes. When I click in combobox I want to fire Ajax request to action in controller. Then I want to reload some part page. How to fire Ajax to action by clicking in combobox?


You could register for the click event:

$(function() {
    $('#treeViewId :checkbox').click(function() {
        // when a checkbox is clicked
        // fire an AJAX request to some action
        // and refresh the contents of some div
        $('#someDiv').load('<%= Url.Action("someaction") %>');
    });
});
0

精彩评论

暂无评论...
验证码 换一张
取 消