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
Specific Field Summary is not displaying..
posted

Hi..

Xamdatagrid is displaying summary details correctly.

But if want to display Perticular field summary like sum with out selctiing sigma button,its not displaying.

I think i write the code correctly.

I m sending tat code also..check it once please.

<igDP:XamDataGrid.FieldLayouts>

 

 

<igDP:FieldLayout>

 

 

<igDP:FieldLayout.SummaryDefinitions>

<

igDP:SummaryDefinition Key="idp_Count2" SourceFieldName="week2" Calculator="Sum" />

 

<igDP:Field Name="week2" Label="Week2" Visibility="Visible" >

</

igDP:Field>

 

 

 

</igDP:FieldLayout.SummaryDefinitions>

</

igDP:FieldLayout.Fields>

 

</igDP:FieldLayout>

  • 69686
    posted

    Hello,

    First, to see summaries you have to allow them like this:

    <igDP:XamDataGrid.FieldSettings>
    <igDP:FieldSettings AllowSummaries="True"/>
    </igDP:XamDataGrid.FieldSettings>

    In order to register a summary for a particular field you need to add it in the SummaryDefinitions collection:

    <igDP:XamDataGrid.FieldLayouts>

          <igDP:FieldLayout Key="FieldLayout1">

                 <igDP:FieldLayout.SummaryDefinitions>

                           <igDP:SummaryDefinition Key="idp_Count2" SourceFieldName="Week2"                              Calculator="Sum"/>

                        </igDP:FieldLayout.SummaryDefinitions>

    <igDP:FieldLayout.Fields... 

    </ fields>

    </ field layout>

    </ field layouts>

    When you click on the Summary button, you should be able to select calculators and the summaries would be displayed properly.

    If you still have problems with this matter, please attach a sample project that reproduces this issue and mention the dll versions you are using.

    Regards,

    Alex.