【问题标题】:rowModelType = 'infinite' with latest ag-grid version,when I reset the rowHeight and reset datasource,the rows loading exceptionrowModelType = 'infinite' 具有最新的 ag-grid 版本,当我重置 rowHeight 并重置数据源时,行加载异常
【发布时间】:2020-08-11 10:00:47
【问题描述】:

我们的要求是rowModelType为'infinite'的表需要动态改变高度,但是当我重置行高和重置数据源时,行数据无法显示,无法滚动加载数据.

//set rowHeight and datasource
    this.setState({rowHeight:20})
    setTimeout(()=>{this.gridApi.setDatasource(this.state.datasource)},0)

【问题讨论】:

    标签: ag-grid


    【解决方案1】:

    最后发现只有serveSide模式可以设置行高,只有初始化才生效。

    【讨论】:

      猜你喜欢
      • 2017-12-02
      • 2020-04-09
      • 2020-09-16
      • 1970-01-01
      • 1970-01-01
      • 2018-12-11
      • 2017-12-01
      • 2021-11-08
      • 1970-01-01
      相关资源
      最近更新 更多