0

有没有办法懒惰地加载列。我有一组 5k 列和 100k 行。我正在使用angularjs 1.5.7angular-ui-grid ^3.x

网格完美适用于 100k 行和 100 列。但是,如果我尝试加载超过 2k 列,则加载页面需要 10-15 秒。我正在使用无限滚动模块。

如果有任何方法可以按需延迟加载列,那就太好了。或者无论如何扩展 ui-grid 库。

提前致谢!

4

1 回答 1

1

Try setting the config option columnVirtualizationThreshold to the number of columns of my table:

columnVirtualizationThreshold: $scope.columns.length

Only problem is the issue that the vertical scrolling becomes slower. See this thread: https://github.com/angular-ui/ui-grid/issues/2784

于 2017-05-11T13:43:23.973 回答