admin管理员组

文章数量:1293012

How can I set the focus (or at least highlight) to a specific cell using SlickGrid, given that I have cell and row number?

Use case behind is that I have a grid which creates an ajax call each time the user changes something in the cell. Ideally the user should not recognize that the data has been send to the server. For the case that the data could not be saved at the server, the client gets informed via a callback and there I want to set the focus to the cell for which the values could not have been saved.

How can I set the focus (or at least highlight) to a specific cell using SlickGrid, given that I have cell and row number?

Use case behind is that I have a grid which creates an ajax call each time the user changes something in the cell. Ideally the user should not recognize that the data has been send to the server. For the case that the data could not be saved at the server, the client gets informed via a callback and there I want to set the focus to the cell for which the values could not have been saved.

Share Improve this question edited Oct 11, 2012 at 15:27 Thomas Kremmel asked Oct 11, 2012 at 15:16 Thomas KremmelThomas Kremmel 14.8k26 gold badges112 silver badges178 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 8

grid.setActiveCell() and grid.focus()

grid.gotoCell() worked for me better, as grid.setActiveCell() wasn't setting the field to an editable state.

本文标签: javascriptSelectFocus cell using SlickGridStack Overflow