[CLOSED] Desktop Module Proxy modal child window

  1. #1

    [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]
  2. #2
    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.
  3. #3
    Quote Originally Posted by Daniil View Post
    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 ?
    Last edited by odyssey; Apr 12, 2013 at 11:19 AM.
  4. #4

Similar Threads

  1. How to get the Desktop Module Window Id
    By yash.kapoor in forum 2.x Help
    Replies: 1
    Last Post: Nov 12, 2012, 6:00 AM
  2. Replies: 8
    Last Post: Apr 30, 2012, 1:51 PM
  3. Get desktop from a child window
    By huguesV in forum 1.x Help
    Replies: 1
    Last Post: Oct 22, 2009, 10:51 PM
  4. [FIXED] [V0.8.0] modal window in desktop
    By [WP]joju in forum Bugs
    Replies: 2
    Last Post: Feb 02, 2009, 1:23 AM
  5. Replies: 6
    Last Post: Jan 26, 2009, 10:06 AM

Posting Permissions