[CLOSED] 3.The Tabpanel1 (Pages1), Gridpanel1 and Communication related to the questions.

  1. #1

    [CLOSED] 3.The Tabpanel1 (Pages1), Gridpanel1 and Communication related to the questions.

    3
    Pages1 page from the event occurs.
    Customized event Gridpanel of the corresponding Row must be select.

    Pages1 Activex events passed to the parent
    Parents of row in the grid should be selected.

    One I do not know what to do.
    Please help me.

    Sorry I'm not English.

    IPCViewer.aspx
    <script language="javascript" type="text/javascript">
            function fnEventCall() {           
                parent.Gridpanel1.Rowselect();   
         }
        </script>
    
    <body style="padding: 0px; margin: 0px; overflow: hidden;">
        <form id="Form1" runat="server">
          <object id="IPCView" classid="CLSID:65D20F48-C909-4167-B650-7256C528336A"
            codebase="IPCViewer.CAB#version=1,0,0,0" height="100%" width="100%">
            <param name="IDK" value="<%=Request.QueryString["IDK"]%>" />
            <param name="HotSpot" value="<%=Request.QueryString["HotSpot"]%>" />
        </object>
    
       <script language="javascript" for="IPCView" event="ButtonClick">fnEventCall();</script> 
    
        </form>
    </body>
    parent

    <ext:TabPanel ID="Pages" 
                    runat="server" > 
                <Items>
                    <ext:Panel 
                        ID="Pages1" 
                        runat="server" 
                        >
                         <AutoLoad Mode="IFrame" Url="IPCViewer.aspx" ShowMask="true" NoCache="true" MaskMsg="Loading....">                                
                            <Params>
                                <ext:Parameter Name="IDK" Mode="Value" />
                                <ext:Parameter Name="HotSpot" Mode="Value" />
                            </Params>
                         </AutoLoad>
                        </ext:Panel>
                </Items>
        </ext:TabPanel>
    
        <ext:Panel 
                ID="East"
                runat="server" 
                Region="East"
                Collapsible="true" 
                Split="true" 
                MinWidth="300"
                Width="300" 
                Layout="Fit" 
                Collapsed="true">
                <Items>
    
                <ext:RowLayout ID="RowLayout1" runat="server" Split="true">
                    <Rows>
                     <ext:LayoutRow RowHeight="0.6">                                 
                        <ext:GridPanel
                            ID="GridPanel1" 
                            runat="server"
                            Border="false" 
                            StripeRows="true"
                            Icon="Table" 
                            Title="Part List"
                            Frame="True" 
                            BufferResize="250" 
                            StoreID="store1"
                            >      
                            
                            <LoadMask ShowMask="true" />                    
                            <SelectionModel>
                                <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true">     
                                    <Listeners>
                                        <RowSelect Handler="#{FormPanel1}.getForm().loadRecord(record);#{FormPanel1}.record = record;" />
                                    </Listeners>
                                </ext:RowSelectionModel>
                            </SelectionModel>               
                            <ColumnModel ID="ColumnModel1" runat="server">
                            <Columns>                                     
                                        <ext:Column
                                            ColumnID="NO" 
                                            Header="No." 
                                            Sortable="true" 
                                            DataIndex="No" 
                                            Width="70px"
                                            >  
                                        </ext:Column>  
                                        <ext:Column 
                                            ColumnID="DESCRIPTION" 
                                            Header="Description" 
                                            Sortable="true" 
                                            DataIndex="DESCRIPTION" 
                                            Width="400px">      
                                        </ext:Column>  
                                       
                                    </Columns>
                            </ColumnModel>                         
                            <LoadMask ShowMask="true" />                              
                            <BottomBar>
                                <ext:PagingToolbar ID="PagingToolbar1" runat="server" StoreID="Store1" PageSize="50" />
                            </BottomBar>  
                     </ext:GridPanel>    
                     </ext:LayoutRow>                   
                        
                     <ext:LayoutRow RowHeight="0.4">
                            <ext:FormPanel 
                                ID="FormPanel1" 
                                runat="server" 
                                Split="true"
                                Margins="0 5 5 5"
                                Frame="true" 
                                Title="Part Information" 
                                Icon="table"
                                DefaultAnchor="100%">           
                            <Items>   
                                <ext:Hidden ID="ID" runat="server" DataIndex="ID" />         
                                <ext:TextArea ID="DESCRIPTION" runat="server" Height="50" FieldLabel="DESCRIPTION" DataIndex="DESCRIPTION"/>
                                <ext:TextField ID="No" runat="server" FieldLabel="No" DataIndex="No"/>
                                <ext:TextField ID="Qty" runat="server" FieldLabel="Quantity" DataIndex="Quantity" /> 
                            </Items>     
                        </ext:FormPanel>   
                           
                     </ext:LayoutRow>
                    </Rows>
                </ext:RowLayout>
            </Items>
            <Listeners>
                    <BeforeShow Handler="#{East}.Collapsed=false;" />
            </Listeners>
    
        </ext:Panel>
    Last edited by Daniil; Aug 28, 2012 at 5:19 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please look at the SelectionModel API.
    http://docs.sencha.com/ext-js/3-4/#!...SelectionModel

    I think you should use the selectRow, selectRows, selectRecords, selectRange methods depending on what you know about the rows which should be selected.

Similar Threads

  1. Replies: 1
    Last Post: Aug 24, 2012, 10:31 AM
  2. Replies: 1
    Last Post: Aug 24, 2012, 10:29 AM
  3. Replies: 1
    Last Post: Aug 24, 2012, 9:25 AM
  4. [CLOSED] [1.0] Couple MVC questions and property questions
    By alliedwallet.com in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Dec 28, 2010, 11:01 AM
  5. Gridpanel1 save method
    By Kamal in forum 1.x Help
    Replies: 1
    Last Post: Jun 10, 2009, 6:52 AM

Posting Permissions