PDA

View Full Version : remove window modal - issue



deepakpoda2000
18 Dec 2012, 4:38 AM
I have created a window.. and applied modal:true to it
when i press "esc" key.. window gets closed ./.. and the modal gets removed...
but when I programatically close teh window, model is still available

var deleteWin = Ext.create('Ext.window.Window', {
listeners: {
scope: this,
show: function (win) {this.popupClose(win)}},
title: '',
plain: true,
border: false,
resizable: false,
draggable: false,
closable : true,
//modal: true,
header: false,
cls: 'popupCls',
items: this.addItemsDelete(allergyObject)
});

and am using
deleteWin.close();

tvanzoelen
18 Dec 2012, 4:46 AM
Can you format this code and make a small working sample of it?


Ext.onReady(function() {

//Code here ...


});

deepakpoda2000
18 Dec 2012, 5:20 AM
It worked now.. I gave wrong id.. thanks for support