DHTMLX 网格对象替代方案
因此,我的团队继承了一个遗留系统,该系统使用 dhtmlxgrid 库提供报告,该库通过 xml 文件加载数据。虽然它正在工作,但似乎缺少某些功能,我们必须破解解决方案才能提供。其中一些包括:
- 内置于实际对象中的加载指示器,可以识别报告何时加载(网格对象有类似的东西,但在我看来不是很可靠)
- 能够显示某种窗格来指示没有报告加载的数据与仅显示空网格相反
- 能够从嵌入 xml 的 jsp 加载数据
- 更好的文档/示例(不是一个大优先事项,但会很好)
在进行一些研究时,似乎有相当多的 jQuery 库提供了网格解决方案,但有点困难缩小大量的选择范围。任何建议将不胜感激。 (也不需要是 jQuery,任何东西都值得赞赏)。
非常感谢。
So my team has inherited a legacy system which provides reports using the dhtmlxgrid library which loads the data via an xml file. While it is working there is certain functionality that appears to be missing that we have had to hack solutions to provide. Some of these include:
- A loading indicator built into the actual object that is cogniscent of when the report has loaded (the grid object has something like this but isn't very reliable imo)
- Ability to display some sort of pane that indicates there is no data loaded as oppose to just displaying an empty grid
- Be able to load data from a jsp with embedded xml
- Better documentation / examples (Not a big priority but would be nice)
In doing some research there appears to be quite a few jQuery libraries that provide grid solutions but it is a bit difficult to narrow down the vast array of options down. Any suggestions would be greatly appreciated. (Don't need to be jQuery either, anything is appreciated).
Thanks so much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会尽力提供一些建设性的信息。
虽然不是最好的库,但您可以使用 dhtmlx 做一些您需要的事情:
1.1 加载指示器:onXLS 和 onXLE 事件在传输开始和结束时发出信号。 dhxLayout 对象可以在特定单元格或整个文档上显示进度指示器。
您还可以在这些事件中使用自己的加载指示器。
1.2 同样,您可以使用 onXLE 事件手动添加一行,表明没有可用数据。
1.3 从字符串加载本地 XML 应该可以工作,并且 XML 岛仅在 IE iirc 中受支持。确实,dhtmlx 文档很糟糕,加载格式文档遍布论坛、wiki 和示例。对于这种情况,请检查:
http://docs.dhtmlx.com/doku。 php?id=dhtmlxgrid:data_loading
1.4 我分享你对文档的看法(它真的很糟糕,没有达到我对成熟库的期望标准),但至少我找到了论坛相当支持。
也就是说,在使用 Java 和 Struts2 进行编码时,我最喜欢的是 DisplayTag+jQuery 插件组合(请参阅 http://www.weinfreund.de/struts2-jquery-showcase/index.action)。除了 Java 之外,我最近听说的其他纯 JS 解决方案是 jmesa ( http://code.google .com/p/jmesa/ )和 DataTables ( http://datatables.net/ )。
祝你好运!
I'll try to provide some constructive info.
While not the best library around, you can do some of the things you need with dhtmlx:
1.1 Loading indicator: The onXLS and onXLE events signal when transfers start and end. The dhxLayout object can show progress indicators on a particular cell or over the whole document.
You can also use your own loading indicator in those events.
1.2 Similarly, you can use the onXLE event to manually add a row signalling that there is no data available.
1.3 Local XML loading from strings should work, and XML Islands are supported only in IE iirc. Truly, dhtmlx documentation stinks and the loading format docs are spread all over the forums, the wiki and the samples. For this case, check this:
http://docs.dhtmlx.com/doku.php?id=dhtmlxgrid:data_loading
1.4 I share your opinion about documentation (it's really bad and doesn't live up to the standards I'd expect from a mature library) but at least I've found the forums pretty supportive.
That said, when coding in Java and Struts2 my favourite is the DisplayTag+jQuery plugin combination ( see 'Grid' in http://www.weinfreund.de/struts2-jquery-showcase/index.action ). Java aside, other pure JS solutions I've hearing about these days are jmesa ( http://code.google.com/p/jmesa/ ) and DataTables ( http://datatables.net/ ).
Good luck!