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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Deserialization summary with custom aggregation

Thread ID:

Created:

Updated:

Platform:

Replies:

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


Dear,

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?

<syncfusion:GridSummaryColumn 
Name="GSITCONT"
CustomAggregate="{StaticResource stringAggregator}"
  Format="'{Distinct}'"
MappingName="SITCONT"
SummaryType="Custom" 
/>

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. 
 
Regards, 
Farjana Parveen A 


CONFIRMATION

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