GroupSummaryRows not display value

Hi,

behind the view i create summary groups  when i change the picker value.

This is the code behind:

private void IdFiltri_SelectedIndexChanged(object sender, EventArgs e)
        {
            dataGrid.Columns.ElementAt(1).Width = 50;

            if (dataGrid.GroupColumnDescriptions.Count > 0)
            {
                dataGrid.GroupColumnDescriptions.Clear();
            }

            if (dataGrid.GroupSummaryRows.Count > 0)
            {
                dataGrid.GroupSummaryRows.Clear();
            }


            if (IdFiltri.SelectedItem.ToString() == "Visualizza per tipo")
            {
                dataGrid.GroupColumnDescriptions.Add(new GroupColumnDescription()
                {
                    ColumnName = "IdDocDescrizCompleta",
                });

                dataGrid.GroupSummaryRows.Add(new GridGroupSummaryRow()
                {
                    ShowSummaryInRow = false,
                    SummaryColumns = new ObservableCollection<ISummaryColumn>()
                {
                    new GridSummaryColumn()
                    {
                        Name="Numero",
                        MappingName="Num",
                        SummaryType=SummaryType.CountAggregate,
                        Format="Nr. Documenti {Count:d}"
                    },
                    new GridSummaryColumn()
                    {
                        Name="TotImponibile",
                        MappingName="TotaleImponibile",
                        Format="Tot. Imponibile {Sum}",
                        SummaryType=SummaryType.DoubleAggregate
                    },
                     new GridSummaryColumn()
                    {
                        Name="TotDocumento",
                        MappingName="TotaleDoc",
                        Format="Tot. Documento {Sum}",
                        SummaryType=SummaryType.DoubleAggregate
                    }
                }
                });

                dataGrid.Columns.ElementAt(1).Width = 120;
            }

            //viewModel.CalcolaDocumenti();
        }     

in uwp this code works and i see the summaries but not in android. There aren't exceptions.

Best 
Alberto C.

3 Replies

SR Sivakumar R Syncfusion Team August 6, 2018 09:45 AM UTC

Hi Alberto, 
 
We have created sample based on the code snippet you have shared and tested in various combinations where group summaries works as expected.  
 
We have attached the tested sample and woring video for your reference and you can download in the following link 
 
We have tried exact code you have shared above and still issue not reproduced. So, requesting to modify the above attached sample to reproduce the issue or can you check your application and make changed based on the above sample, if any of the required changes missed in your application.  
 
Thanks, 
Sivakumar 



AL Alberto August 21, 2018 12:54 PM UTC

Hi Shivakumar,

i have found the solution, i have updated all packages regarding syncfusion and xamarin forms to the last version available.
In this way the bug in the android device is not existing anymore.

Alberto C.


VR Vigneshkumar Ramasamy Syncfusion Team August 22, 2018 11:16 AM UTC

Hi Alberto, 
 
Thanks for the update. We glad to know that your issue has been resolved. Please get in touch if you required further assistance on this. 
   
Regards 
Vigneshkumar R 


Loader.
Up arrow icon