Results 1 to 2 of 2

Thread: modal dialog and borderlayout inside a borderlayout tab!!!

  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2007
    Virginia, USA
    Vote Rating

    Default modal dialog and borderlayout inside a borderlayout tab!!!

    Is it possible to do a modal dialog that only impacts its parent? Or are we still forced to place the dialog in the document body?

    I suppose I can find a clever way to do what i want by using Element.mask and unmask.

    Something like this....
    Place a dialog and container div in the tab.
    Put all the meat in the container div.
    When I dialog is opened place it in the dialog div and mask the container div.
    I think that should do it.

    Any better ideas? Maybe this could be built in to dialog...

    Here is my scenario and solution psuedo format....

    I have N, W, C border layout.
    Various tabs are open in C region.
    One tab has a border layout and a dialog box open.
    Using getRegion(...).el.mask() I disabled each region.
    I used getNextSibling() from regions to find any split elements and and used mask to disable them.
    Finishing the dialog unmaskes all of the elements. This simulates a modal dialog withen a tab for me.

    Hope this helps anyone... Oh here is a snippet of code for masking and unmasking...

    Ext.get('someTabId').createChild({id:'dialogId', tag:'div'}); 
    layout = new Ext.BorderLayout("someTabId",{... 
    dialog = new Ext.BasicDialog('dialogId', { 
    Ext.get(layout.getRegion('west').el.getNextSibling()).mask(); //mask split bar 

    use unmask to reverse this.

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    New York, NY
    Vote Rating


    That's a lot of masking.

Similar Threads

  1. BasicDialog inside nested BorderLayout
    By christocracy in forum Community Discussion
    Replies: 8
    Last Post: 11 Sep 2007, 11:41 PM
  2. Ext.BorderLayout, inside of a Tab [Solved]
    By Saeven in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 23 Mar 2007, 4:25 AM
  3. Bug with modal dialogs contained inside tabs (on IE)
    By Morten in forum Ext 1.x: Bugs
    Replies: 1
    Last Post: 22 Mar 2007, 1:45 PM
  4. NavBar inside BorderLayout
    By gcsolaroli in forum Ext 1.x: Help & Discussion
    Replies: 12
    Last Post: 30 Nov 2006, 5:45 AM
  5. issue with grid inside tab inside dialog
    By bernieberg in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 9 Oct 2006, 6:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts