Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>New Answer:</p> <p>Have you tried to <code>disable()</code> and <code>enable()</code> the parent window appropriately? I think that should help you in stopping access to the first window and at the same time allowing your user to access the main application menu and screen. Here is what I tried:</p> <pre><code>var x = Ext.create("Ext.Window",{ title : 'aa', width : 200, height: 150, html : 'a', tbar : [{ text : 'aa' , handler :function(){ // I disable the parent window. x.disable(); Ext.create("Ext.Window",{ title : 'aa', width : 150, closable : false, height: 100, html : 'b' // You will need to enable the parent window in close handler of this window. }).show(); } }] }).show(); </code></pre> <p>When you disable the window, the components within the window are disabled and you will not be able to even move the window. But at the same time, you will have access to other components like your main menu, grids on the page. You will also have access to the new window. Now, to make it behave like a modal, you need to enable the parent window when you close the child window. You can make use of the <code>enable()</code> method for that.</p> <p>I cannot think of any other way to achieve what you are looking for.</p> <hr> <p>Old Answer:</p> <p>I wonder why you have set the <code>ownerCt</code> property referring to the window itself! That is your main problem. By removing the property you will achieve what you are looking for. Here is the updated code:</p> <pre><code>Ext.create("Ext.Window",{ title : 'Extra window!', width : 150, height: 100, closable : false, html : 'A window that is a modal!', modal : true }).show(); </code></pre> <p>Was there any reason in setting the <code>ownerCt</code> property?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload