SfDatagrid : Summary Row : No value showing

Dear Syncfusion,

please take a look at the picture I have attached (code + result). My GridTableSummaryRow is not showing any value. I tried all different kind of summaries, but all without succes.
Do I miss something ?What do I do wrong ?

  
                                                    Position="Top"
                                ShowSummaryInRow="True">
                       
                                                                  Format="{}{Sum:c}"
                                      MappingName="TotalAmountVAT"
                                      SummaryType="DoubleAggregate" />

                       

                   



               

               
                   
                   
                   
                   
                   
                   
                   
               

             






Attachment: summary_608f46cf.zip

3 Replies

AN Ashok N Syncfusion Team November 1, 2017 11:43 AM UTC

Hi Asterinex, 
 
Thanks for contacting Syncfusion support. 
 
We have checked your code snippet and please confirm your side TotalAmountVAT property type is double, If you use string datatype to TotalAmountVAT property set SummaryType is DoubleAggregate and Format is Sum, the summary value will be blank due to type mismatch. We request you to use corresponding type for each Aggregate.  
 
Please refer the below UG link and get more details about Aggregate Type 
 
 
Regards, 
Ashok 



AS asterinex November 3, 2017 07:58 PM UTC

thx for your time and answer. I found my mistake.

In the GridTableSummaryRow I should have used the GridSummaryColumn's Name Property instead of the Mappingname.
It is working now. Btw the type I use is decimal. But is seems to work too with DoubleAggregate.:)


thx,
Gert



AN Ashok N Syncfusion Team November 6, 2017 09:52 AM UTC

Hi Asterinex, 
 
Thanks for your update, please let us know if you require further assistance on this. 
 
Regards, 
Ashok 


Loader.
Up arrow icon