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

  1. #1

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

    Hi

    The Tabpanel1 (Pages1)and Gridpanel1, and Communication related to the question.


    2.
    Tabpanel only one exists.

    When you click a gridpanel row,
    Pass the values ​​to the parameters(Item.no) of the Tabpanel Pages1.

    Shows the change that Pages1 of Hotspot.
    Pages1 should not be reloaded.

    
     protected void RowSelect(object sender, DirectEventArgs e)
        {
            string ID = e.ExtraParams["ID"];
    
            Pages1.AutoLoad.Params["HotSpot"] = ID;
    
            Pages1.Reload();
            
            //this.Pages1.AutoLoad.Url= "IPCViewer.asxp?IDK=" + ID;
    
            //X.Msg.Alert("ID : ", ID).Show();
        }
    
    
    <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:Panel>
    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>
    Last edited by Daniil; Aug 28, 2012 at 5:19 PM. Reason: [CLOSED]
  2. #2
    Hi,

    This

    Quote Originally Posted by kkapjin View Post
    Pages1 should not be reloaded.
    looks inconsistent with


    Quote Originally Posted by kkapjin View Post
    
     protected void RowSelect(object sender, DirectEventArgs e)
        {
            ...
    
            Pages1.Reload();
            
            ...
        }

Similar Threads

  1. Replies: 1
    Last Post: Aug 24, 2012, 10:29 AM
  2. Replies: 1
    Last Post: Aug 24, 2012, 9:25 AM
  3. #{GridPanel1}.deleteSelected() not in documentation
    By normanguitar in forum 1.x Help
    Replies: 2
    Last Post: Mar 24, 2011, 11:15 PM
  4. #{GridPanel1}.deleteSelected(); problem
    By sadeque in forum 1.x Help
    Replies: 2
    Last Post: Feb 14, 2010, 6:24 AM
  5. Gridpanel1 save method
    By Kamal in forum 1.x Help
    Replies: 1
    Last Post: Jun 10, 2009, 6:52 AM

Posting Permissions