0
votes

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.

1
Does win have any logic when closing. Validate, save etc?Tony Hopkinson
No, there is no listener added on to it. It is just ordinary window.extjs user
Don't know extjs, but i'd look at things like hiding the window, and perhaps setting win and any other reference to it to null.Tony Hopkinson
@extjsuser Please post your window config object.Eric

1 Answers

1
votes

We always use window.hide(). It makes more sense in almost all cases anyway:

saveRefresh : function() {

    this.win.hide();

    this.grid.getView().refresh();
}