PDA

View Full Version : [CLOSED] Window Renderto Parent



Kricher
Apr 06, 2014, 5:35 PM
Hi

I have a page with a container panel:



<body>
<form id="form1" runat="server">
<ext:ResourceManager runat="server" Theme="Gray" DirectMethodNamespace="SIU.DirectMethods" >
</ext:ResourceManager>
<ext:Viewport runat="server" Layout="Border">
<Items>
<ext:Panel ID="pnlHeader" runat="server" Header="false" Region="North" Border="false" Height="100">
...
</ext:Panel>
<ext:Panel ID="pnlLeft" runat="server" Width="250" Border="false" Region="West" Layout="Fit">
...
</ext:Panel>
<ext:Panel ID="pnlContent" runat="server" Margins="5" Region="Center" BodyPadding="13">
<Loader runat="server" Mode="Frame" AutoLoad="false" ShowWarningOnFailure="false">
<LoadMask ShowMask="true" />
</Loader>
</ext:Panel>
</Items>
</ext:Viewport>
</form>
</body>


From selection in pnlLeft, I load one aspx page in the pnlContent as follows:



[DirectMethod]
public void LoadPageMenu(string reqPage, string idObj = "")
{
...
pnlContent.Loader.Url = reqPage;
pnlContent.LoadContent();
...
}


No problem. The page is loaded. In this page, I have one window:



<ext:Window ID="winMap" runat="server" Icon="Map" Title="Location"
Hidden="true" Width="650" Height="400" Modal="true" >
<Loader runat="server" Mode="Frame" AutoLoad="false">
<LoadMask ShowMask="true" />
</Loader>
</ext:Window>


The window's loadmask is shown in the pnlContent. I want that the window's loadmask loads in the entire page parent. I tried with the method in this thread (http://forums.ext.net/showthread.php?13855&p=57686&viewfull=1#post57686), but doesn't work. I tried add the RenderTo propertie in the ext:Window tag, but not success too. Please, I need help.

Thank you.

Daniil
Apr 07, 2014, 5:43 PM
Hi @Kricher,

Welcome to the Ext.NET forums!

The only solution is to put the Window to the parent page. Here is a related discussion.
http://forums.ext.net/showthread.php?17151

Kricher
Apr 11, 2014, 2:26 PM
Daniil, thank you for your answer.

I was hoping to do it from Javascript.

Regards