Dec 13, 2018, 8:34 AM
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
thanks
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.