Hi , I am working on a web application with kendo grid and i've bind doubleclick event to the grid.But when the user click in a particular cell the double click event not firing.I think those cells having inner templates like "div"(click event works fine.The issue is only in double click).Any help?
Its better to have the dbl click event on the tr row element. That way you can access your dataItem object in the kendo grid if needed. In your kendogrid databound event, add this code:
if ($("#your-grid").find("tbody").children().length <= 0) {
$.each($("#your-grid").find("tbody").find("tr"), function () {
$(this).addClass("row-dbl-click");
});
}
Now you need to handle the dbl click event:
$(document).on("dblclick", ".row-dbl-click", function (e) { //do stuff });
I havent tested it but it should work. Good luck.
You can try:
$("#grid").on("dblclick", "tr.k-state-selected", function () {
alert("Double click");
});