dhtmlXGrid 与 Backbone.js 的集成
有人对 dhtmlxGrid
来自 dhtmlx 的组件?我几天前购买了 PRO 版本,现在我感觉有点失落,因为我无法将它与我的 Backbone 模型连接。他们的支持有点沉默......
我需要这个,因为我需要监视这些模型中的变化并根据该变化更新网格。
最好的方法是一些数据适配器,网格使用它来获取行数据。因此我可以直接从模型中读取内容,而无需将任何内容复制到另一个 JSON 对象。当模型更改时,我会告诉网格按 ID 使行无效,并且它将再次从该数据适配器读取数据。
我尝试使用 dhtmlXDataStore ,但它缺少文档,我无法使其工作。您还有其他想法吗?
Does anybody has some experience with dhtmlxGrid
component from dhtmlx ? I had bought PRO version few days ago and i am now feeling kind a lost, because i cannot connect it with my Backbone models. And support from them is sort of silent...
I need this, because i need to monitor for changes in those models and update grid with that change.
Best approach would be some data adapter, which is used by grid to get data for rows. So i could read there directly from model without duplicating anything to another JSON object. And when model changes i would tell grid to invalidate rows by ID and it will read data again from that data adapter.
I tried using dhtmlXDataStore
, but it's lacking documentation and i cannot make it work. Do you have any other ideas ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我知道这是一篇旧文章,只是想说使用 dhtmlx 数据存储是一个好方法。对数据存储所做的任何更改都会自动推送到网格。
还有各种事件处理程序可以添加到数据存储和网格中。并且有 API 可以更改数据存储。 Dhtmlx 非常神奇。
我已经使用 dhtmlx 一年多了,我发现它有办法完成我需要它做的所有事情。
I know this is an old post, just wanted to say that using the dhtmlx datastore is a good approach. Any change made to the datastore is automatically pushed to the grid.
Also there are all sorts of event handlers which can be added to both the datastore and the grid. And there are APIs to change the datastore. Dhtmlx is pretty amazing.
I've been using dhtmlx for more than a year now and I have found there are ways to everything I've needed it to do.