PDA

View Full Version : Object not destroyed at 'closeAction:destroy'



promitt
19 May 2011, 5:56 AM
Hi everybody.

I've got a window and a grid, both of them are separate objects made with Ext Designer. I render the grid to the window using the following code:


initComponent: function() {
this.items=[
new EpicGridxDD({owner:this.owner,dealwith:this.dealwith,id_plan:this.id_plan})
];
WindowPanelUi.superclass.initComponent.call(this);
this.show();
}

Everything works fine when I work with this window, but things turn bad when I close it and reopen: the columns & fields & data of the grid (I generate them dynamically) appear duplicated.

That's how the window usually appears:
http://imageshack.us/f/194/capture2as.png/

..And that's how it appears when re-opened:
http://imageshack.us/f/199/captureocq.png/

The window does have the closeAction property set to destroy. I believe it works, and I need to re-initialize the grid somehow. If you know a tip to get rid of this error, I will really apreciate. Thanks.