Kendo grid row selection change event?

坚强是说给别人听的谎言 提交于 2019-12-23 08:15:07

问题


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:


You are looking for change event.

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



来源:https://stackoverflow.com/questions/14509337/kendo-grid-row-selection-change-event

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!