Apr 12, 2013, 10:30 AM
[CLOSED] Desktop Module Proxy modal child window
If "module" loaded through "UserControl" child Window "modality" is not working properly since the parent is not becoming "body"
<%@ Control Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:DesktopModuleProxy runat="server">
<Module ModuleID="tab-win" AutoRun ="true" >
<Shortcut Name="Alert Management" X="200" Y="100" TextCls="x-long-label"></Shortcut>
<Launcher Text="Tab Window" Icon="Tab" />
<Window>
<ext:Window runat="server"
Icon="Tab"
Width="740"
Height="480"
AnimCollapse="false"
ConstrainHeader="true"
Border="false"
Layout="Fit"
Title="Tab Window">
<Items>
<ext:TabPanel runat="server" ActiveTabIndex="0" BodyStyle="padding:5px;">
<Items>
<ext:Panel runat="server" Title="Tab Text 1" Border="false" Html="<p>Something useful would be in here.</p>">
<Items>
<ext:Window runat ="server" ID ="wnd1" Width ="300" Modal ="true" Height ="200" Html ="Hello" Hidden ="true" ></ext:Window>
<ext:Button runat ="server" ID ="btnShowWind" Text ="Show window" >
<Listeners>
<Click Handler ="#{wnd1}.show();" ></Click>
</Listeners>
</ext:Button>
</Items>
</ext:Panel>
</Items>
</ext:TabPanel>
</Items>
</ext:Window>
</Window>
</Module>
</ext:DesktopModuleProxy>
control is loaded in DirectMethod
[DirectMethod(ShowMask = true)]
public void AddNewModule()
{
Ext.Net.Desktop.GetInstance().RemoveModule("add-module");
DesktopModuleProxy control = Ext.Net.Utilities.ControlUtils.FindControl<Ext.Net.DesktopModuleProxy>this.LoadControl("modules/TabWindow.ascx"));
control.RegisterModule();
}
Last edited by Daniil; Apr 16, 2013 at 5:38 AM.
Reason: [CLOSED]