Aug 13, 2009, 6:31 AM
[CLOSED] Row Selection in Grid panel
Hi,
i am using portal page, in that one there is two tab, in the first tab i am showing the record in grid panel, in the second tab i am showing the record in report format for the selected row in first tab. my problem is, i am loading the record in grid panel in first tab, when i selected a row, it is selected within a second.after that i loaded second tab and showed the report for the selected row. when i come again to grid panel, if i select a row in grid panel it takes 6 to 7 seconds.
i am using portal page, in that one there is two tab, in the first tab i am showing the record in grid panel, in the second tab i am showing the record in report format for the selected row in first tab. my problem is, i am loading the record in grid panel in first tab, when i selected a row, it is selected within a second.after that i loaded second tab and showed the report for the selected row. when i come again to grid panel, if i select a row in grid panel it takes 6 to 7 seconds.
<ext:GridPanel ID="GrdPnl1" StoreID="Sto1" runat="server" StripeRows="true" Border="true" SelectionMemory="Enabled"
TrackMouseOver="true" MaskDisabled="false">
<ColumnModel ID="ColumnModel2" runat="server">
<Columns>
</Columns>
</ColumnModel>
<SelectionModel>
<ext:CheckboxSelectionModel HideCheckAll="true" SingleSelect="true" ID="CheckboxSelectionModel1" runat="server">
<Listeners>
<RowDeselect Handler="Tab2disable();"></RowDeselect>
<RowSelect Handler="if(Ext.isEmpty(record.data.sys_id, false) && Ext.isEmpty(record.data.order_no, false)){return false;}" />
</Listeners>
<AjaxEvents>
<RowSelect OnEvent="SubmitSelection" ShowWarningOnFailure="false" Timeout="120000"
Success="window.Tab2enable();">
</RowSelect>
</AjaxEvents>
</ext:CheckboxSelectionModel>
</SelectionModel>
<Plugins>
<ext:GridPanelMaintainScrollPositionOnRefresh ID="GridPanelMaintainScrollPositionOnRefresh1"
runat="server">
</ext:GridPanelMaintainScrollPositionOnRefresh>
<ext:GridFilters runat="server" ID="GridFilters1" Local="true">
<Filters>
</Filters>
</ext:GridFilters>
</Plugins>
<BottomBar>
<ext:PagingToolbar ID="PagingToolBar1" runat="server" StoreID="Sto1" DisplayInfo="true" >
</ext:PagingToolbar>
</BottomBar>
</ext:GridPanel>
protected void SubmitSelection(object sender, AjaxEventArgs e)
{
RowSelectionModel Row = sender as RowSelectionModel;
int current_page = PagingToolBar1.PageIndex;
current_page = ((current_page - 1) * PagingToolBar1.PageSize) + Row.SelectedIndex;
int index = current_page;
string ID = Row.SelectedRecordID;
}
i am binding grid panel dynamically
</PRE>