I have a selectable, navigatable and editable grid. After I enter a
value in a cell, I have to change the value in the cell under the
updated cell. To show the updated values of both cells, I have to
refresh the grid. When I do that, the edited cell loses focus. I found a
way to refocus the last edited cell during the save event:
//gets the cell index of the currently focused cell
//...some dataItem saving (dataItem.set()) logic...
//refreshing the grid instance
//refocusing the cell
focusedCell = $(
+ dataItem.uid +
+ (focusedCellIndex + 1) +
The problem is that this works for the first time, but if I try to
re-edit the same cell again, the cell loses focus. When I try to debug,
it seems that this.current().cellIndex
in the second attempt, and because of that cell focusing isn't working anymore.
Does anyone have any idea why this.current()
works for the 1st time, and not for the 2nd time? Are there any other approaches for refocusing the cell?