Slickgrid vs. jqGrid vs. ...?对于调度程序

发布于 2024-12-11 00:13:04 字数 97 浏览 0 评论 0原文

我正在尝试评估创建资源计划查看器的工具。行是资源(带有可折叠的子行),列是时间(天、周等)。我研究过的网格框架似乎都无法在哲学上适应该用例(即松散定义的无限列),有人有任何建议吗?

I am trying to evaluate tools to create a resource schedule viewer. The rows would be resources (with collapsible subrows), and the columns would be time (days, weeks, etc). None of the grid frameworks I have looked into seem to accommodate that use case philosophically (i.e. loosely defined, infinite columns), does anyone have any recommendations?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我一向站在原地 2024-12-18 00:13:04

使用三个月后,我从 jqGrid 切换到 SlickGrid。

jqGrid 很好,毕竟它是最流行的 JavaScript 网格插件。但是:

  • 文档不仅可能不完整,而且除了有些居高临下之外,还可能具有误导性。大多数情况下,您最终都会完成工作,但经过痛苦的调试/搜索例程之后。

  • 以类似的方式,API 命名可能会好得多。例如:addJSONData()实际上接受一个对象,或者某些方法的参数包括rowidiRow

  • 它尝试为您做所有事情,从 AJAX 调用到排序、解析数据和格式化数据。尝试按照自己的方式做一些事情,您会发现 jqGrid 不支持关注点分离。

  • 这不是一个真正的开源项目 - 许多行实际上被混淆 - 而 SlickGrid 包括 JSDoc 注释和所有内容。

还没有尝试过 SlickGrid,但它看起来很不错。它的作者现在受雇于 Google,该项目在 GitHub 上有出色的统计数据。这些话让我彻底信服:

主要区别在于 SlickGrid 和其他网格实现之间
我发现他们过于注重能够理解
并处理数据,但不足以成为更好的网格。

此外,虚拟渲染显然比仅仅删除 N 个 元素要优越。

I'm switching from jqGrid to SlickGrid after three months of usage.

jqGrid is fine, after all it's the most popular JavaScript grid plugin. But:

  • Documentation can be not only be incomplete but also misleading, aside from somewhat condescending. Mostly you'll end up getting things done, but after a painful debug/search routine.

  • In a similar way, API naming could be much, much better. For example: addJSONData() actually accepts an object, or a certain methods' parameters include rowid and iRow.

  • It tries to do it everything for you, from AJAX calls to sorting, parsing data and formatting it. Try to do something your own way and you'll discover that jqGrid doesn't favour separation of concerns.

  • It's not a true open source project - many lines are practically obfuscated - whereas SlickGrid includes JSDoc comments and all.

Haven't tried SlickGrid yet, but it just looks so fine. Its author is now hired at Google and the project has excellent stats at GitHub. These words totally convinced me:

The key difference is between SlickGrid and other grid implementations
I have seen is that they focus too much on being able to understand
and work with data and not enough on being a better grid.

Also, virtual rendering is clearly superior than just dropping N <tr> elements.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文