Very strange problem but still do not understand why. I have a grid and on ColumnDblClick i open a window. Window works fine, submit data but when try to close window, it does not close.
很奇怪的问题,但仍然不明白为什么。我有一个网格,在ColumnDblClick上我打开一个窗口。窗口工作正常,提交数据,但在尝试关闭窗口时,它不会关闭。
saveRefresh : function() {
this.win.close(); <---------------------------execute fine.
this.grid.getView().refresh();
},
Above coding works fine and does not raise any error. It refresh grid and grid shows saved data. But some how it does not close window. I have to click "Save" button 3 times to close window.
以上编码工作正常,不会引起任何错误。它刷新网格和网格显示保存的数据。但有些如何不关闭窗口。我必须单击“保存”按钮3次才能关闭窗口。
Any idea why it follow strange behaviour??
知道为什么它会遵循奇怪的行为?
Many Thanks.
非常感谢。
1 个解决方案
#1
1
We always use window.hide(). It makes more sense in almost all cases anyway:
我们总是使用window.hide()。无论如何,它在几乎所有情况下都更有意义:
saveRefresh : function() {
this.win.hide();
this.grid.getView().refresh();
}
#1
1
We always use window.hide(). It makes more sense in almost all cases anyway:
我们总是使用window.hide()。无论如何,它在几乎所有情况下都更有意义:
saveRefresh : function() {
this.win.hide();
this.grid.getView().refresh();
}