在ext中,editorgrid通常要失去一次焦点才能将最后编辑数
据设置为脏数据提交到后台,下面的方法可以解决这个问题,在window的保存或者提交按钮的事件中加入以下代码:
if(cooperationPriceGrid.activeEditor != null){
cooperationPriceGrid.activeEditor.completeEdit();
}
其中cooperationPriceGrid为EditorGridPanel