Reputation: 263
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.
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.
Any idea why it follow strange behaviour??
Many Thanks.
Upvotes: 0
Views: 473
Reputation: 5712
We always use window.hide(). It makes more sense in almost all cases anyway:
saveRefresh : function() {
this.win.hide();
this.grid.getView().refresh();
}
Upvotes: 1