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 badges2 Answers
Reset to default 8grid.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
版权声明:本文标题:javascript - SelectFocus cell using SlickGrid - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741567031a2385786.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论