剑道网格行选择更改事件? [英] Kendo grid row selection change event?

查看:28
本文介绍了剑道网格行选择更改事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个问题..

  1. 我正在使用 Kendo 网格,想知道在更改行选择时在文档级别触发事件是否可行.

  1. 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.

基本上,当行选择发生变化时,我想触发一个事件,这是在全局级别完成的,而不依赖于 gridID.

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-selected').parents('tbody').live('change', function (e) {警报(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.

如何使用剑道窗口(弹出)上的 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!");
    });

我是否需要包含任何额外的类来识别剑道窗口?

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.

您可能也有兴趣查看此演示,其中显示了不同的grid 事件.

You might also been interested on taking a look into this demo showing different grid events.

这篇关于剑道网格行选择更改事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆