[CLOSED] open window out of its parent

  1. #1

    [CLOSED] open window out of its parent

    Dear all,
    I want to open window its id="wMailsDaitails" out of its parent window,I have link button its id="lbtnMailTruking" when I click on this link button,should open this window,
    But the problem the window open inside the parent window, so if u could please to tell me how can I do it, and thank you in advance, This is my ASPX code,
     <ext:FormPanel ID="fpMailDetails" runat="server" Icon="Application" IDMode="Static"
                Width="900" AutoHeight="true" Plain="true" Border="false" Collapsible="false"
                Closable="false" BodyBorder="false" AnimateTarget="Button1">
    <Item>
    <ext:Toolbar ID="Toolbar1" IDMode="Static" runat="server">
                        <Items>
              
     <ext:Button ID="btnAddShotcuteSende" IDMode="Static" runat="server" Icon="ArrowRotateClockwise"
                                ToolTip="الرد على المعاملة">
                                <Listeners>
                                    <Click Fn="opneReplayPage" />
                                </Listeners>
                            </ext:Button>
                            <ext:ToolbarSeparator ID="tbseprarator" />
                            <ext:Button ID="btnPrintBarCode" IDMode="Static" runat="server" Icon="PrinterMono"
                                ToolTip="طباعة الباراكود">
                                <%--  <Listeners>
                            <Click Fn="saveMail" />
                            </Listeners>--%>
                            </ext:Button>
                            <ext:ToolbarSeparator ID="ToolbarSeparator1" />
                             <ext:LinkButton ID="lbtnMailTruking" runat="server" Icon="PageAttach" Text="حركة المعاملة">
                             <Listeners>
                             <Click Handler="#{wMailsDaitails}.show();" />
                             </Listeners>
                             </ext:LinkButton>
                        </Items>
                    </ext:Toolbar>
      <ext:Window runat="server"  IDMode="Static"  ID="wMailsDaitails" Hidden="true" Height="500" Width="500">
                    
                    <Items>
                   
            <ext:GridPanel 
                ID="gpmailMovment" 
                runat="server" 
                StoreID="stMailDeatils" 
                TrackMouseOver="true"
                Title="حركة المعاملة" 
                Collapsible="true" 
                AnimCollapse="true"
                Icon="Table" 
                Width="600" 
                Height="600">
                <ColumnModel ID="ColumnModel3" runat="server">
                    <Columns>
                        <ext:Column Header="مرسل" Width="40" DataIndex="Sender" />
                        <ext:Column Header="المستقبل" Width="20" DataIndex="Reciver"/>
                        <ext:Column Header="مورد" Width="20" DataIndex="Mail_Exported" />
                        <ext:Column Header="رقم الوارد" Width="20" DataIndex="Mail_ExportNo" />
                        <ext:Column Header="مصدر" Width="20" DataIndex="Mail_Imported" />
                        <ext:Column Header="رقم التصدير" Width="20" DataIndex="Mail_ImportNo" />
                        <ext:Column Header="تاريخ القراءة" Width="20" DataIndex="Mail_ReadDate" />  
                    </Columns>
                </ColumnModel>
                <View>
                    <ext:GridView ID="GridView1" runat="server" ForceFit="true" />
                </View>
                <SelectionModel>
                    <ext:RowSelectionModel ID="RowSelectionModel2" runat="server" />
                </SelectionModel>
                <Plugins>
                    <ext:RowExpander ID="reshowwindows" runat="server">
                    <Component>
                    <ext:Panel  runat="server" Frame="true" Hidden="true" ID="wMailDetais_Inside" Header="true" Title="Mail Details">
                  <AutoLoad MaskMsg="asdsad" Mode="IFrame" Url="http://www.google.com" ></AutoLoad>
                    </ext:Panel>  
                    </Component>
                      <Listeners>
                      <Expand Fn="showwindows" />
                      </Listeners>  
                    </ext:RowExpander>
                </Plugins>
            </ext:GridPanel>
                    </Items>
                
                    </ext:Window>
                </Items>
                <Listeners>
                    <AfterRender Handler="HandelWindowSize(#{fpMailDetails});" Delay="250" />
                </Listeners>
            </ext:FormPanel>
    Last edited by Daniil; Jul 26, 2011 at 7:54 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Not sure that I understand where the window and where you should open that window.

    I guess you need something like this:
    http://forums.ext.net/showthread.php?9935
  3. #3

    open window out of its parent

    dear Daniil ,

    Hope you are fine and doing well,

    Yes you are right that what i wanted , But not in this way, your
    example explains how to create a new window using Java Script to open out of its parent, But for me I already define the window in
    the "ASPX" page as u can see, So my problem,If u could please, I want to now If i can use any Predefined property that come with Ext:window to make it opens out of its parent its window
    and If i can't use one of the Predefined properties that coming with the <ext:window>, how can I do that in Java script .
    This is the definition of my window:
    <ext:Window runat="server"  IDMode="Static"  ID="wMailsDaitails" Hidden="true" Height="500" Width="500">
    <ext:Window>
    thank you in advance
  4. #4
    Please use
    parent.wMailsDaitails.show();
  5. #5
    Dear Daniil,

    hope you are fine and doing well,

    It doesn't work but no problem we solve the problem by create new page and open it in new window .

    Best Regards,

Similar Threads

  1. Open window out the parent
    By Egale in forum 1.x Help
    Replies: 8
    Last Post: Jun 22, 2011, 11:45 AM
  2. [CLOSED] Open window in a parent container
    By edigital in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 18, 2011, 5:21 PM
  3. [CLOSED] Open window in parent
    By paulc in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 16, 2010, 9:54 AM
  4. [CLOSED] Open a Window in a parent page
    By Immobilmente in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 07, 2009, 4:10 AM
  5. [CLOSED] ext:ImageButton, open URL in parent window
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Mar 11, 2009, 11:39 AM

Posting Permissions