使用SlickGrid选择/聚焦单元格 [英] Select / Focus cell using SlickGrid

查看:102
本文介绍了使用SlickGrid选择/聚焦单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有单元格和行号,如何使用SlickGrid将焦点(或至少突出显示)设置为特定单元?

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

后面的用例是我有一个网格,每次用户更改单元格中的内容时都会创建一个ajax调用。理想情况下,用户不应该认识到数据已经发送到服务器。对于无法在服务器上保存数据的情况,客户端会通过回调获得通知,并且我希望将焦点设置为无法保存值的单元格。

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.

推荐答案

grid.setActiveCell()和grid.focus()

grid.setActiveCell() and grid.focus()

这篇关于使用SlickGrid选择/聚焦单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆