如何为mvc查找Telerik网格的排序、过滤事件?
我在操作模式下使用 Telerik grid for mvc,我想找到排序和过滤事件,即当我单击列标题进行排序时调用 sort
事件,并且我想在以下情况下重置某个变量排序被称为我该怎么做...
当我单击标题部分时,单击事件未被识别不知道为什么,但它被取消了一些
我尝试显式绑定它并尝试为事件命名,但它不起作用
$(".thead").bind("click.namespace");
或
$(".t-link").bind("click.namespace");
或者
$("#gridID>table>thead").bind("click.namespace");
无法捕捉到它
$(".thead").live("click.namespace", function (e) {
console.log("t-head");
});
,或者如果我做得
$(document).click(function (e) {
console.log(e.target);
console.log($(e.target).attr("class"));
});
很好单击表格单元格,但单击列标题时不会记录任何内容
I am using telerik grid for mvc in operation mode and i want find the sort and filter event that is when i click the column header for sorting the sort
event is called and i want to reset a certain variable when sort is called how can i do that...
The click event is not being recognized when i click on the header part dont know why but some how its being cancelled
i have tried binding it explicitly and tried namespacing the event but it didnt work
$(".thead").bind("click.namespace");
or
$(".t-link").bind("click.namespace");
or
$("#gridID>table>thead").bind("click.namespace");
couldn't capture it with
$(".thead").live("click.namespace", function (e) {
console.log("t-head");
});
or if i do
$(document).click(function (e) {
console.log(e.target);
console.log($(e.target).attr("class"));
});
works well with clicks on the table cell but when click on the column header nothing gets logged
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)