I have mapped the double click and keydown event in a dataBound event for a kendo popup grid. I faced some issues which was mentioned below,
1. Binding Doubleclick event for grid row in dataBound event as,
self.tbody.find("tr").on("dblclick", function (e) {
if (!$(this).hasClass('k-grid-edit-row')) {
self.editRow($(this));
}
});
After popup open, while clicking cancel, next time double click not firing for that row.
2. Binding KeyDown event for grid row in dataBound event for deleting the row,
self.tbody.find("tr").on("keydown", function (e) {
if (e.keyCode == 46) {
self.removeRow($(this));
}
});
The delete key event is not firing for the selected row.
Thanks and Regards,
Thirumurthi
1. Binding Doubleclick event for grid row in dataBound event as,
self.tbody.find("tr").on("dblclick", function (e) {
if (!$(this).hasClass('k-grid-edit-row')) {
self.editRow($(this));
}
});
After popup open, while clicking cancel, next time double click not firing for that row.
2. Binding KeyDown event for grid row in dataBound event for deleting the row,
self.tbody.find("tr").on("keydown", function (e) {
if (e.keyCode == 46) {
self.removeRow($(this));
}
});
The delete key event is not firing for the selected row.
Thanks and Regards,
Thirumurthi