This is a migrated thread and some comments may be shown as answers.

[Solved] Disable InCell editing on focus from EditOnTab

0 Answers 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
PierLuc
Top achievements
Rank 1
PierLuc asked on 19 Mar 2012, 10:03 PM
Hi,

I am using a Grid with InCell editing, keyboard navigation and EditOnTab enabled.

Is there a way to disable the edit mode on a specific row when the focus is coming from the tab key?
Tabbing from an editable row to a "non editable" one is switching the cell to edit mode.

I am able to disable edit mode for a specific row on the click event, binding on the OnRowDataBound event, using this code:

function Grid_DisableRowEditing(e) {
        $(e.row).find("td").click(function (edit) { edit.stopPropagation(); });
}

I tried binding on the focus/focusin events with no positive results.

Thanks for your help.
Tags
Grid
Asked by
PierLuc
Top achievements
Rank 1
Share this question
or