【问题标题】:how much rows handsontable can load?Handsontable 可以加载多少行?
【发布时间】:2014-10-29 21:42:37
【问题描述】:
Exception in queued task: Error: Security brake: Too much TRs. Please define height for your table, which will enforce scrollbars.
at WalkontableTable._doDraw (client/libs/handsontable-0.10.5/jquery.handsontable.full.js?37b46fd989b9a974c3501865b51effd7adec37e4:12859:15)
at WalkontableTable.draw (client/libs/handsontable-0.10.5/jquery.handsontable.full.js?37b46fd989b9a974c3501865b51effd7adec37e4:12760:10)
at Walkontable.draw (client/libs/handsontable-0.10.5/jquery.handsontable.full.js?37b46fd989b9a974c3501865b51effd7adec37e4:10435:16)
at Handsontable.TableView.render (client/libs/handsontable-0.10.5/jquery.handsontable.full.js?37b46fd989b9a974c3501865b51effd7adec37e4:2781:11)
at Object.selection.selection.refreshBorders (client/libs/handsontable-0.10.5/jquery.handsontable.full.js?37b46fd989b9a974c3501865b51effd7adec37e4:646:21)
at render (client/libs/handsontable-0.10.5/jquery.handsontable.full.js?37b46fd989b9a974c3501865b51effd7adec37e4:1398:17)
at $.fn.handsontable (client/libs/handsontable-0.10.5/jquery.handsontable.full.js?37b46fd989b9a974c3501865b51effd7adec37e4:2382:35)

当我在 handsontable-10.0.5 中加载超过 1500 行时,我在客户端浏览器控制台收到此错误,目前我使用数据绑定来加载这些行数

有没有办法在handsontable中加载超过1500行?

【问题讨论】:

    标签: javascript jquery handsontable


    【解决方案1】:

    我刚刚在 handsontable 中测试了一个有 100,000 行的 jsFiddle,效果很好。

    显示大量行时需要非常小心,因为浏览器很可能会运行得很慢。

    我建议采用错误消息建议,并为您的表格定义高度,这将强制滚动条。

    这种方式handsontable只会渲染表格的可见部分,而不是完整的行数。

    【讨论】:

    • 我的本地系统和从本地主机加载没有问题,但是当我从我的亚马逊实例加载它时显示错误
    猜你喜欢
    • 1970-01-01
    • 2017-11-01
    • 1970-01-01
    • 2016-11-08
    • 2013-06-01
    • 2013-06-10
    • 2015-06-07
    • 2012-11-03
    • 1970-01-01
    相关资源
    最近更新 更多