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

后端 未结 4 2287
迷失自我
迷失自我 2020-12-31 10:34

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.

4条回答
  •  心在旅途
    2020-12-31 11:11

    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
    });
    

提交回复
热议问题