Nei*_*ir0 5 filter ag-grid angular
我曾尝试将 ag grid 用于 angular 2 并面临以下行为:
当我尝试在列过滤器中输入任何内容时,网格也会重新加载和重置过滤器。它不仅发生在我为过滤输入内容时,而且即使我试图更改过滤器的类型也是如此。
有人有类似的问题吗?
我通过添加属性解决了这个问题:newRowsAction: 'keep'
columnDefinition = {
headerName: 'Athlete',
field: 'athlete'
// set the column to use text filter
filter: 'text',
// pass in additional parameters to the text filter
filterParams: {apply: true, newRowsAction: 'keep'}
}
Run Code Online (Sandbox Code Playgroud)
来自 ag-grid 文档:https : //www.ag-grid.com/javascript-grid-filtering/#gsc.tab=0
| 归档时间: |
|
| 查看次数: |
6050 次 |
| 最近记录: |