开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜