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
380
Custom Summaries are lost after async request
posted

 

Version: 11.1.20111.2238

Hello,

I have a WebDataGrid in an UpdatePanel. If I select a row and this fires a RowSelectionChanged event the CustomSummary in the SummaryRow disappears (the cell is empty then).
If I add standard column summaries they stay, only custom summaries are lost (also with EnableViewState="true").

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
 <ContentTemplate>
  <ig:WebDataGrid ID="wdg1" runat="server" EnableAjax="false" EnableDataViewState="true">
                            <Behaviors>
                                <ig:Selection CellClickAction="Row" RowSelectType="Single">
                                    <AutoPostBackFlags RowSelectionChanged="true" />
                                </ig:Selection>
                                <ig:SummaryRow ShowSummariesButtons="False" FormatString="{1}" CompactRendering="On" EmptyFooterText="" Enabled="true">
                                    <ColumnSummaries>
                                        <ig:ColumnSummaryInfo ColumnKey="Avg1">
                                            <Summaries>
                                                <ig:Summary SummaryType="Custom" CustomSummaryName="Avg1" />
                                            </Summaries>
                                        </ig:ColumnSummaryInfo>
                                    </ColumnSummaries>
                                    <ColumnSettings>
                                        <ig:SummaryRowSetting ColumnKey="Avg1" ShowSummaryButton="false">
                                            <SummarySettings>
                                            <ig:SummarySetting SummaryType="Custom" CustomSummaryName= "Avg1" FormatString="{1:##.#0}" />
                                            </SummarySettings>
                                        </ig:SummaryRowSetting>
                                    </ColumnSettings>
                                </ig:SummaryRow>
                            </Behaviors>
                        </ig:WebDataGrid>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="butUpdate" EventName="Click" />
                    </Triggers>
</asp:UpdatePanel>

Regards,
Andreas

Parents
  • 13438
    posted

    Hello Andreas

     

    I have made a sample based on your code snippet but I am unable to reproduce the issue with the pointed from you version. I have tested the sample with IE 9 and Chrome latest. I am using for custom summary just DateTime.Now. Can you please modify the sample to reproduce the issue or if it is not necessary provide steps to reproduce and browser + version if you are using a different one.

    WDG_custom_summary.zip
Reply Children