How to handle a Kendo UI Grid row double-click event

Water Cooler v2 picture Water Cooler v2 · Dec 30, 2013 · Viewed 20.7k times · Source

I have a selectable KendoUI grid in my MVC app. I want to do something when the user double-clicks on the grid.

I don't see a double-click event for the grid.

How may I handle the double-click event when there is none exposed?

Answer

EfrainReyes picture EfrainReyes · Dec 30, 2013

Use the standard double click event. The first click will select the grid row, adding a .k-state-selected class to it, and the second click will trigger the double click event.

$("#yourgridname").on("dblclick", "tr.k-state-selected", function () {
    // insert code here
});