排序 属性 从 Aggrid 中的列状态中省略
Sort property is omitted from the column state in Aggrid
每当从 aggrid 调用 sortchanged 时,我都试图获取列状态
但我只能看到以下属性。不知道是什么原因。
var colState = gridOptions.columnApi.getColumnState();
<==Property==>
aggFunc: null
colId: "Name"
hide: false
pinned: null
pivotIndex: null
rowGroupIndex: null
width: 200
我正在使用 gridOptions.api.getSortModel() 获取排序模型;
但它不返回 sortIndex。有没有其他方法可以获取 sortIndex,我想知道为什么我在执行 gridOptions.columnApi.getColumnState() 时得到的属性很少。
我应该根据文档获得以下属性
Aggrid ColumnState documentation
如果有人对此有任何解决方法,请提出建议。
调试后发现了一些东西。列状态中省略了一些 属性(排序等)。请打开附件图片。
AG-Grid Ver:ag-grid-enterprise-21.2.1
问题出在我使用的版本上。我试过 25.0.1。现在一切正常。
每当从 aggrid 调用 sortchanged 时,我都试图获取列状态
但我只能看到以下属性。不知道是什么原因。
var colState = gridOptions.columnApi.getColumnState();
<==Property==>
aggFunc: null
colId: "Name"
hide: false
pinned: null
pivotIndex: null
rowGroupIndex: null
width: 200
我正在使用 gridOptions.api.getSortModel() 获取排序模型; 但它不返回 sortIndex。有没有其他方法可以获取 sortIndex,我想知道为什么我在执行 gridOptions.columnApi.getColumnState() 时得到的属性很少。 我应该根据文档获得以下属性
Aggrid ColumnState documentation
如果有人对此有任何解决方法,请提出建议。
调试后发现了一些东西。列状态中省略了一些 属性(排序等)。请打开附件图片。
AG-Grid Ver:ag-grid-enterprise-21.2.1
问题出在我使用的版本上。我试过 25.0.1。现在一切正常。