刷新 yui 数据表中的单个单元格
我正在使用 yui 数据表来显示带有实时更新的某些字段的表格数据。我见过的所有示例都要求重新绘制整个表,即使只更改了一列数据。显然,这会导致客户端排序和滚动出现问题,并对 UI 性能产生不利影响。有没有什么方法可以让数据表仅渲染更新数据的单元格?
I am using a yui datatable to show tabular data with certain fields that update in real timee. All examples I've seen require that the entire table be re-drawn even if only one column of data has been changed. Obviously this causes problems with both client-side sorting and scrolling and adversely affects UI performance as well. Is there any way to have a datable render ONLY the cells for which data was updated?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
DataTable.updateCell
方法。Use the
DataTable.updateCell
method.