We have a requirement where user wanted to use the up/down keys to navigate rows while the grid is in edit mode. I was able to achieve this using the Keydown event of the RadnumericTextBox, but the edited value seems to revert back to the original value when user press the navigation keys. We are using Batchedit mode so I would like to get to get the red mark on the edited row before it changes the focus to the next row. Could this be achieved? Below is the Javascript I'm calling in the Keydown event of RadnumericTextBox.
function
OnKeyDown(sender, args) {
var
key = args.keyCode;
var
grid = $find(
"<%=grid.ClientID%>"
);
var
data = grid.get_batchEditingManager().get_currentlyEditedCell();
var
tableView = grid.get_masterTableView();
if
(key == 38) {
//Up Key
var
row = grid.get_batchEditingManager().get_currentlyEditedRow();
if
(row.previousSibling) {
grid.get_batchEditingManager().openRowForEdit(row.previousSibling);
}
}
else
if
(key == 40) {
//Down key
var
row = grid.get_batchEditingManager().get_currentlyEditedRow();
if
(row.nextSibling) {
grid.get_batchEditingManager().openRowForEdit(row.nextSibling);
}
}
}