How to open a window when a window is already open in extjs

354 views Asked by At

I want to open a new window but a window is already open. window is opening but at the back of that window which is already open?? i am new to extjs and using extjs 6.
model: true
bringToFront: true
both are not workingenter image description here

here in this image you see when i click on edit the small window is opening but at the back that window i just want to open it at the front of that window.
hope you understand my problem now

1

There are 1 answers

4
Darin Kolev On

The Method show() (toFront() also) will do the trick for you. Here a small example:

var a = new Ext.Window({
    title: 'a', 
    width: 200,
    height: 200
}).show();

var b = new Ext.Window({
    title: 'b', 
    width: 200,
    height: 200
}).show();

a.show(); // or a.toFront();

There is also a property toFrontOnShow, but it is true by default.