[CLOSED] how to close window after click button in this window

  1. #1

    [CLOSED] how to close window after click button in this window

    Hi,

    Like in Title how to make it happend?

    example:
    I have Window which is popup with IFrame mode.

    I tryed something like this
     (this.Page.Parent as Ext.Net.Window).Close();
    but it's doesn't work


    Is there any possibility to do that?

    Thanks for advance:)
    Last edited by Daniil; Jun 20, 2012 at 9:04 AM. Reason: [CLOSED]
  2. #2
    Hi,

    You can hide the Window calling its hide method.
    Window1.hide();
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    You can hide the Window calling its hide method.
    Window1.hide();
    I know I can make that from Parent of this Window. But I need to make this inside this Window. (In IFrame Page)
  4. #4
    Please call
    parentAutoLoadControl.hide();
    inside the iframe.
  5. #5
    Danii could u provide the working sample how to write this on .aspx which is in this Window as IFrame page?
  6. #6
    If you need to hide the parent window from server side please use:
    X.Js.AddScript("parentAutoLoadControl.hide();");
  7. #7
    Thanks Danii :)
    It's work like a dream:]
  8. #8

    Reload data in store after button event from codebehind

    Hi,
    How can I do it?

    btn.DirectEvents.Click.After = "#{GridPanelMain}.store.reload();";
    doesn't work as expected.
  9. #9
    Please start a new forum thread.

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. Replies: 1
    Last Post: May 08, 2012, 8:21 AM
  3. Replies: 1
    Last Post: May 04, 2012, 1:35 PM
  4. Create new window dynamically on button click from another window
    By softlabsgroup.support in forum 1.x Help
    Replies: 6
    Last Post: May 01, 2012, 9:26 AM
  5. Replies: 4
    Last Post: Sep 17, 2010, 10:33 PM

Tags for this Thread

Posting Permissions