Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kendo grid row selection change event?

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.

like image 756
Evolving Techie Avatar asked Jan 24 '13 19:01

Evolving Techie


1 Answers

You are looking for change event.

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

like image 58
OnaBai Avatar answered Oct 16 '22 21:10

OnaBai