【发布时间】:2011-11-01 01:48:18
【问题描述】:
我对全状态网格有疑问。我不想保存排序状态,但我想保存所有其他选项(列位置、列宽、分组等)
目前我已经尝试使用 stateEvents 选项,但它会在偶数触发时保存整个网格状态。
是否有任何选项可以将排序状态排除在保存之外??
部分网格配置:
this.gridPanel = new Ext.grid.GridPanel({
id:'grid'+this.id,
region:region,
layout:'fit',
stateful:true,
stateEvents: ['columnmove', 'columnresize', 'groupchange', 'bodyresize'],
loadMask:true,
split:true,
store: this.stores['root'+this.id],
cm: this.getRootColumnModel(),
sm: this.getRootSelectionModel(),
【问题讨论】: