Kendo网格行选择更改事件? [英] Kendo grid row selection change event?
问题描述
我有几个问题。
-
我使用Kendo网格,想知道是否可以在更改行选择时在文档级别触发事件。
I'm using Kendo grid and would like to know if it is feasible to fire an event at the document level when a row selection is changed.
基本上,当行选择更改时,我想触发一个事件,
Basically, when a row selection is changed, I want to fire an event and this is done at the global level without depending on the gridID.
例如:
$('tr.k-state - 选择')。父母('tbody')。live('change',function(e){
alert(onchange);
});
}
$('tr.k-state-selected').parents('tbody').live('change', function (e) { alert("onchange"); }); }
但上面的例子不工作。我没有在grid / body / gridRow上定义任何其他类。
But the above example do not work. I do not have any other classes defined on the grid/ body/ gridRow.
如何使用kendo窗口上的span类弹出式窗口)
How can I fire a click event using the span class on the kendo window (pop-up)
我已尝试下面的代码,但不起作用
I've tried below code but that doesn't work
$('span.k-icon.k-i-close').parents('a').click(function (e) {
alert("clicked!");
});
我需要包含任何adidtional类识别kendo窗口?
Do I need to include any adidtional classes for recognizing the kendo window ?
任何帮助将非常感激。提前感谢。
Any help will be much appreciated. Thanks in advance.
推荐答案
You are looking for change
event.
您可能还对以下网址感兴趣:查看此演示,显示不同的网格
事件。
You might also been interested on taking a look into this demo showing different grid
events.
这篇关于Kendo网格行选择更改事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!