Hi,
My grid has EditMode="Batch"
<BatchEditingSettings EditType="Row" />
And AllowKeyboardNavigation="true"
Pressing Delete key causes JavaScript errors when no rows are selected. This happens right after a row was deleted.
I was trying to disable this key through,
This prevents Delete key from functioning, but only when focus is inside edited textbox.
When a row is highlighted, the code executes, but a row is deleted anyway. Setting AllowKeyboardNavigation to false resolves this issue at a loss of other functionality.
Is there a way to disable just the Del key?
My grid has EditMode="Batch"
<BatchEditingSettings EditType="Row" />
And AllowKeyboardNavigation="true"
Pressing Delete key causes JavaScript errors when no rows are selected. This happens right after a row was deleted.
I was trying to disable this key through,
$(document).keydown(
function
(e) {
if
(e.which == 46) {
e.preventDefault();
return
false
;
}
});
This prevents Delete key from functioning, but only when focus is inside edited textbox.
When a row is highlighted, the code executes, but a row is deleted anyway. Setting AllowKeyboardNavigation to false resolves this issue at a loss of other functionality.
Is there a way to disable just the Del key?