Kendo grid row selection change event?

2019-06-16 10:55发布

I've couple of questions..

  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.

    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.

    Example:

    $('tr.k-state-selected').parents('tbody').live('change', function (e) { alert("onchange"); }); }

    But the above example do not work. I do not have any other classes defined on the grid/ body/ gridRow.

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

1条回答
霸刀☆藐视天下
2楼-- · 2019-06-16 11:25

You are looking for change event.

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

查看更多
登录 后发表回答