[英]ag-grid sorting on cell value changed
values in my grid table can change at any time. 网格表中的值可以随时更改。 I would like to keep it sorted after every value change in a sorted column.
我想让它在排序列中的每个值更改后都保持排序。 Is there any grid or column API I can call in onCellValueChanged event?
我可以在onCellValueChanged事件中调用任何网格或列API吗?
Regards 问候
You could try something like 您可以尝试类似
gridOptions.api.setSortModel(gridOptions.api.getSortModel())
but this may be overkill - you can also get the state off the current column sort and apply that accordingly 但这可能是过大了-您还可以将状态从当前列排序中删除,并相应地应用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.