[CLOSED] Ext.Window: Question about clicking outside a modal Window

  1. #1

    [CLOSED] Ext.Window: Question about clicking outside a modal Window

    Hi,

    I have an application that opens a window and I like to check if there is any listener event to:
    (1) Detect if user has clicked outside the window (grayed area).
    (2) Have the listener do something, like programatically close the window (or alert user if he want to close the window).

    <ext:Window ID="window1" runat="server" Modal="true" Closable="true" />
    Is this possible?

    Thanks!
    Last edited by geoffrey.mcgill; Feb 07, 2012 at 4:00 AM. Reason: [CLOSED]
  2. #2
    Quote Originally Posted by nhg_itd View Post
    (1) Detect if user has clicked outside the window (grayed area).
    Hi,

    Here you are.

    Example
    <ext:Window runat="server" Modal="true">
        <Listeners>
            <Show Handler="this.mask.on('click', function () {
                                alert('I am the Mask!');
                            });"
                    Single="true" />
        </Listeners>
    </ext:Window>
    Quote Originally Posted by nhg_itd View Post
    (2) Have the listener do something, like programatically close the window (or alert user if he want to close the window).
    Please keep one issue per one thread.
  3. #3
    Hi Daniil,

    Thanks for the quick reply. My statement (2) is just to reinforce statement (1), which is answered in line 4 of your example.
    Please close this ticket.

    Regards, J
  4. #4
    Quote Originally Posted by nhg_itd View Post
    My statement (2) is just to reinforce statement (1), which is answered in line 4 of your example.
    Ah, indeed :)

Similar Threads

  1. Replies: 5
    Last Post: Apr 20, 2012, 6:20 AM
  2. [CLOSED] X.Msg with Modal Window
    By jwf in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 20, 2011, 9:22 PM
  3. [CLOSED] Modal Window Issue
    By SamFoot in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 27, 2011, 9:37 AM
  4. Modal Window
    By erey in forum 1.x Help
    Replies: 0
    Last Post: Mar 29, 2010, 12:06 PM
  5. Replies: 0
    Last Post: Apr 07, 2009, 8:57 AM

Posting Permissions