- Home
- Forum
- Xamarin.Forms
- SfDataGrid group summary not updating
SfDataGrid group summary not updating
Hello,
I have problems with updating group summary for my DataGrid - when I edit a cell (OrderID in this case) it's not updating group summary. To simplify the problem I used the OrderInfo model from your docs - https://help.syncfusion.com/xamarin/sfdatagrid/getting-started#create-datamodel-for-the-sfdatagrid with added INotifyPropertyChanged. Here is my DataGrid setup:
I have problems with updating group summary for my DataGrid - when I edit a cell (OrderID in this case) it's not updating group summary. To simplify the problem I used the OrderInfo model from your docs - https://help.syncfusion.com/xamarin/sfdatagrid/getting-started#create-datamodel-for-the-sfdatagrid with added INotifyPropertyChanged. Here is my DataGrid setup:
OrderInfoRepository viewModel = new OrderInfoRepository();
dataGrid.ItemsSource = viewModel.OrderInfoCollection;
dataGrid.GroupColumnDescriptions.Add(new GroupColumnDescription() { ColumnName = "ShipCountry" });
dataGrid.AllowEditing = true;
GridSummaryRow summaryRow = new GridSummaryRow
{
ShowSummaryInRow = true,
Title = "{Key}: {Total}"
};
summaryRow.SummaryColumns.Add(new GridSummaryColumn()
{
Name = "Total",
MappingName = "OrderID",
Format = "{Sum}",
SummaryType = SummaryType.DoubleAggregate
});
dataGrid.CaptionSummaryRow = summaryRow;
dataGrid.GridViewCreated += (object sender, GridViewCreatedEventArgs e) =>
{
dataGrid.View.LiveDataUpdateMode = LiveDataUpdateMode.AllowSummaryUpdate;
};
Did I missed something?
SIGN IN To post a reply.
3 Replies
DS
Divakar Subramaniam
Syncfusion Team
September 28, 2017 11:57 AM UTC
Hi Damian,
We confirm that the issue “Caption summaries are not updated if we edit and commit any values” is a defect. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates.
Regards,
Divakar.
FM
Fred Morin
November 26, 2018 07:28 PM UTC
Has there been any updates on the defect ?
VR
Vigneshkumar Ramasamy
Syncfusion Team
November 27, 2018 06:31 AM UTC
Hi Fred Morin
Thanks for contacting Syncfusion support.
We have already fixed the reported issue with “Caption summaries are not updated if we edit and commit any values” and you can download our latest version from below link.
Please let us know if this helpful.
Regards
Vigneshkumar R
SIGN IN To post a reply.
- 3 Replies
- 4 Participants
-
DA Damian
- Sep 27, 2017 06:55 PM UTC
- Nov 27, 2018 06:31 AM UTC