-2

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

Darin Kolev
  • 3,401
  • 13
  • 31
  • 46
Salman hassan
  • 398
  • 6
  • 23
  • 2
    Please post code and if possible a screenshot of the problem – Flying Gambit Dec 22 '16 at 11:31
  • hello i edited my question watch it now if you can help ;) Flying Gambit – Salman hassan Dec 22 '16 at 11:49
  • 1
    Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example. – Alexander Dec 22 '16 at 19:38
  • 1
    Your code is either ExtJS 4.1, or ExtJS 6, but not both. Remove the wrong tag. – Alexander Dec 22 '16 at 19:39

1 Answers1

2

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.

Darin Kolev
  • 3,401
  • 13
  • 31
  • 46