call second window from the first window

  1. #1

    call child window from the parent window

    Hello to the masters

    i have a window that takes some information and when user submit this page the second Window come up and show message that operation is successful or no.
    i create window in codebehiend with The following code
    
     Window win = new Window
                {
                    ID = "Window2",
                    Title = "Insert",
                    Height = 450,
                    Width = 750,
                    BodyPadding = 5,
                    Modal = true,
                    CloseAction = CloseAction.Destroy,
                    Loader=Html.X().ComponentLoader()
                    .Url(@Url.Action("InsertUpdate", "position", new { Area = "position" } ))
                        .Mode(LoadMode.Frame)
                    .LoadMask(lm => lm.ShowMask = true)
                };
    
                win.Render(RenderMode.Auto);
    
    
    
     Window win3 = new Window
                {
                    ID = "Window3",
                    Title = "info",
                    Height = 250,
                    Width = 450,
                    BodyPadding = 5,
                    Hidden = true,
                    Modal = false,
                    CloseAction = CloseAction.Destroy,
                    Loader = Html.X().ComponentLoader()
                        .Url(@Url.Action("Message", "position", new { Area = "position" }))
                        .Mode(LoadMode.Frame)
                        .LoadMask(lm => lm.ShowMask = true)
                };
    and i used below code for showing child window but it dose not work for me
         X.Button()
                  .ID("Button1")
                  .Text("Save")
                  .Cls("numpad-btn two")
                  .MarginSpec("0 0 7 0")
                  .IconCls("save")
                  .Scale(ButtonScale.Large)
    
                  .DirectEvents(de =>
                  {
                      de.Click.Url = Url.Action("InsertUpdate");
                     de.Click.Success = "App.Window3.showBy('Window2','tl-tr')";
                  }),
    how can i show child window from Parent window?
    thanks
    Last edited by orpheus; Dec 13, 2018 at 12:13 PM.
  2. #2
    Hello @orpheus!

    Your answer lies within this example: Panel - IFrame Communication

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello Dear fabricio
    thanks for reply but i want to Show a message like Alert() but by Window.it is easy when a windows set up via normal page but when i try to call Child windows via Parent Windows nothing happens. it means i want to open second window on the first window no in the first window
  4. #4
    You want, maybe, constrain an Ext.NET's Window within another Ext.NET's Window?

    Take a look at this: Window > Basic > Window Variations. Notice how the "constrained windows" behave... Perhaps this is what you need?

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 5
    Last Post: Feb 10, 2014, 3:16 AM
  2. window.eval.call(window,result.script error
    By khalidal in forum 2.x Help
    Replies: 0
    Last Post: Jan 15, 2014, 3:11 PM
  3. X.Js.call Open new window
    By rookie in forum 1.x Help
    Replies: 1
    Last Post: Jan 02, 2013, 5:46 AM
  4. [CLOSED] Call other window's method
    By FAS in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Mar 14, 2012, 4:03 PM
  5. Replies: 6
    Last Post: Feb 15, 2012, 4:15 PM

Posting Permissions