[CLOSED] Javascript pop up under close button in Ext.Net.Window control dynamic create

  1. #1

    [CLOSED] Javascript pop up under close button in Ext.Net.Window control dynamic create

    Hi,

    How can i display to user popup with text "Are u sure u want to cancel operation"?

    in normal Buttons/Ext.Net.Buttons is a event which is fire on client side.

    OnClientClick="return confirm('Do u want to cancel?');"

    Is there any similar event on Ext.Net.Window Control to make it happend after click a exit button?
    Last edited by Daniil; May 15, 2012 at 8:47 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Please use BeforeHide or BeforeClose Window listeners. Returning false from these listeners prevents hiding/closing.

    You should use:

    • BeforeHide if you don't change Window CloseAction or set it up explicitly to "Hide" (it's by default).
    • BeforeClose if you set up Window CloseAction to "Close".
    Last edited by Daniil; May 14, 2012 at 1:37 PM.
  3. #3
    That works great thanks:)

Similar Threads

  1. Create a button to close a window
    By Orwel in forum 2.x Help
    Replies: 2
    Last Post: Aug 10, 2012, 12:16 PM
  2. [CLOSED] how to close window after click button in this window
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Jun 22, 2012, 2:48 PM
  3. [CLOSED] Unable to close dynamic Window
    By wisdomchuck in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 28, 2012, 2:35 PM
  4. Dynamic create a TextField and Button
    By cnet2001 in forum 1.x Help
    Replies: 3
    Last Post: Dec 17, 2010, 1:16 AM
  5. Close dynamic window
    By Dominik in forum 1.x Help
    Replies: 0
    Last Post: May 04, 2010, 8:47 AM

Tags for this Thread

Posting Permissions