Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
539
while using ultragrid inside an ajax update pannel
posted

Hai

 

 

Ima using an Ultragrid inside an ajax update pannel  and the grid is filled with a coustomet data and the grid is also paged . 

every thing works fine like paging etc;


The problem comes ,When i double clicks on any row in the second page onwards in the grid ,In the doubleclick event handler iam getting the id of the corresponding row in first page . The code behind the design for the grid is given below

 

   <asp:UpdatePanel id="UpdatePanel1" runat="server">
                                <contenttemplate>
&nbsp;<igtbl:UltraWebGrid id="UltraWebGridAccountsMaster" ondblclick="UltraWebGridAccountsMaster_DblClick" runat="server" Width="100%" OnInitializeRow="UltraWebGridAccountsMaster_InitializeRow" DataKeyField="customerid" OnDataBinding="UltraWebGridAccountsMaster_DataBinding" OnInitializeLayout="UltraWebGridAccountsMaster_InitializeLayout2" OnPageIndexChanged="UltraWebGridAccountsMaster_PageIndexChanged"><Bands>
<igtbl:UltraGridBand>
<AddNewRow View="NotSet" Visible="NotSet"></AddNewRow>
</igtbl:UltraGridBand>
</Bands>

<DisplayLayout ViewType="OutlookGroupBy" Version="4.00" AllowSortingDefault="OnClient" StationaryMargins="Header" AllowColSizingDefault="Free" AllowUpdateDefault="Yes" StationaryMarginsOutlookGroupBy="True" EnableInternalRowsManagement="True" CellClickActionDefault="RowSelect" HeaderClickActionDefault="SortMulti" Name="ctl10xUltraWebGridAccountsMaster" BorderCollapseDefault="Separate" ColWidthDefault="" AllowDeleteDefault="Yes" RowSelectorsDefault="No" TableLayout="Fixed" RowHeightDefault="20px" AllowColumnMovingDefault="OnServer" SelectTypeRowDefault="Extended">
<GroupByBox>
<BoxStyle BorderColor="Window" BackColor="ActiveBorder"></BoxStyle>
</GroupByBox>

<GroupByRowStyleDefault BorderColor="Window" BackColor="Control"></GroupByRowStyleDefault>

<ActivationObject BorderWidth="" BorderColor=""></ActivationObject>

<FooterStyleDefault BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray">
<BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails>
</FooterStyleDefault>

<RowStyleDefault Wrap="True" BorderWidth="1px" BorderColor="Silver" BorderStyle="Solid" Font-Size="8.25pt" Font-Names="Microsoft Sans Serif" BackColor="Window">
<BorderDetails ColorTop="Window" ColorLeft="Window"></BorderDetails>

<Padding Left="3px"></Padding>
</RowStyleDefault>

<FilterOptionsDefault>
<FilterOperandDropDownStyle BorderWidth="1px" BorderColor="Silver" BorderStyle="Solid" Font-Size="11px" Font-Names="Verdana,Arial,Helvetica,sans-serif" BackColor="White" CustomRules="overflow:auto;">
<Padding Left="2px"></Padding>
</FilterOperandDropDownStyle>

<FilterHighlightRowStyle ForeColor="White" BackColor="#151C55"></FilterHighlightRowStyle>

<FilterDropDownStyle BorderWidth="1px" BorderColor="Silver" BorderStyle="Solid" Font-Size="11px" Font-Names="Verdana,Arial,Helvetica,sans-serif" BackColor="White" Width="200px" Height="300px" CustomRules="overflow:auto;">
<Padding Left="2px"></Padding>
</FilterDropDownStyle>
</FilterOptionsDefault>

<HeaderStyleDefault HorizontalAlign="Left" BorderStyle="Solid" BackColor="LightGray">
<BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails>
</HeaderStyleDefault>

<EditCellStyleDefault BorderWidth="0px" BorderStyle="None"></EditCellStyleDefault>

<FrameStyle BorderWidth="1px" BorderColor="InactiveCaption" BorderStyle="Solid" Font-Size="8.25pt" Font-Names="Microsoft Sans Serif" BackColor="Window" Width="100%"></FrameStyle>

<Pager PageSize="10" MinimumPagesForDisplay="2" StyleMode="PrevNext">
<PagerStyle BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray">
<BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails>
</PagerStyle>
</Pager>

<AddNewBox Hidden="False">
<BoxStyle BorderWidth="1px" BorderColor="InactiveCaption" BorderStyle="Solid" BackColor="Window">
<BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails>
</BoxStyle>
</AddNewBox>
</DisplayLayout>
</igtbl:UltraWebGrid>
</contenttemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="CmdSearch" EventName="Click" />
                                    <asp:AsyncPostBackTrigger ControlID="UltraWebGridAccountsMaster" EventName="PageIndexChanged" />
                                </Triggers>
                            </asp:UpdatePanel>

 

 

 

 

 

Please somebody help me

Regards

Rajesh Kamalakshan