We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Deserialization summary with custom aggregation

Thread ID:





147132 Sep 2,2019 08:01 PM UTC Sep 3,2019 10:38 AM UTC WPF 2
Tags: SfDataGrid
Thiago Renan Gomes
Asked On September 2, 2019 08:01 PM UTC


I have a problem deserializing an SfDataGrid.

I have summarized columns in groupings that use custom aggregators. The problem occurs when from the first time I use deserialization on a datagrid, aggregation stops working, but only custom ones.

How should I proceed?

CustomAggregate="{StaticResource stringAggregator}"

Before deserializing:

After deserializing:

Attachment: StringAggregate_c786f9fd.rar

Thiago Renan Gomes
Replied On September 2, 2019 08:16 PM UTC

Resolved by ignoring the summarized fields.

var serializationOptions = new SerializationOptions()
                SerializeCaptionSummary = false,
                SerializeGroupSummaries = false,
                SerializeTableSummaries = false,
                SerializeDetailsViewDefinition = false,
                SerializeUnBoundRows = false,
                SerializeStackedHeaders = false

var deserializationOptions = new DeserializationOptions()
                DeserializeGroupSummaries = false,
                DeserializeCaptionSummary = false,
                DeserializeTableSummaries = false,
                DeserializeDetailsViewDefinition = false,
                DeserializeUnBoundRows = false,
                DeserializeStackedHeaders = false

Farjana Parveen Ayubb [Syncfusion]
Replied On September 3, 2019 10:38 AM UTC

Hi Thiago, 
Thanks for the update. 
We are glad to know that the reported problem has been resolved at your end. By default custom summaries is not support the Serialization and Deserialization. So when you Serialize and Deserialize the SfDataGrid, you have to disable the Serialization and Deserialization option for that corresponding summaries. 
Please let us know if you have any further queries on this. We are happy to help you. 
Farjana Parveen A 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon