PDA

View Full Version : [CLOSED] Desktop Module Proxy modal child window



odyssey
Apr 12, 2013, 10:30 AM
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();
}

Daniil
Apr 12, 2013, 11:04 AM
Hi @odyssey,

I would avoid placing a Window into an Items collection.

Please try to put the Window into the Panel's Bin collection instead.

odyssey
Apr 12, 2013, 11:15 AM
Hi @odyssey,

I would avoid placing a Window into an Items collection.

Please try to put the Window into the Panel's Bin collection instead.

Thank you very much.
By the way what is the BIN ?

Daniil
Apr 12, 2013, 11:22 AM
Here are some details.
http://forums.ext.net/showthread.php?13726#post57259