PDA

View Full Version : Modal window over modal window



klodoma1
21 Nov 2010, 12:17 PM
Hi,

I create a modal window and from this window I open another modal window.
Unfortunatelly this second window is not modal in relation with the first one.

Is there a custom setting for this?

Regards,
Andrei.

klodoma1
21 Nov 2010, 12:20 PM
Sorry for posting this into open discussions, could please one of the admins move this to the "help" Forum.
Thanks.

Condor
22 Nov 2010, 1:53 AM
This should work, as long as both windows belong to the same WindowGroup (by default all windows belong to the WindowMgr group).

klodoma1
17 Aug 2011, 4:56 AM
So, I'm still not able to make this run properly.

Check the following code example, i also tried to specify the manager, but it didn't worked well.
Any hints?

Just throw this into a console where extjs is running:


function openModalWindow(){
var win = new Ext.Window({
width:500,
height:300,
plain: true,
modal: true,
html: "This is a test",
renderTo: document.body,
buttons: [{
text: 'Open new window',
handler: openModalWindow
}]
});
win.show();
}


openModalWindow();
In real life, I have panels in a modal window from which I open another modal window.

Thanks, Andrei.

klodoma1
30 Aug 2011, 7:32 AM
Any ideas?

klodoma1
29 Nov 2011, 1:24 AM
After more digging, the route of this problem was that I had defined this Javascript function:


Array.prototype.remove = function ( obj ) { this.splice(obj,1);};

I hope this helps also others.