If I add SummaryRowSettings.SummaryDefinitionCollection to my xamGrid, I can no longer properly serialize and deserialize using the persistence manager.
I start getting exceptions (System.NullReferenceException) from InfragisticsWPF4.DataManager.v15.2 at Infragistics.SummaryDefinitionCollection.GetDefinitionsBySummaryExecution.
Please see the attached example. My question comes in two parts.
OnlySpecified)
The way to test is to first click "Save" and then "Load". You may need to regen GridStrings.Designer.cs to get the project to run...
This persistence stuff is a bit frustrating Any help would be greatly appreciated.
I played with this quite a bit today. One possible workaround is similar to what I did previously when the PersistenceManager kept trying to serialize the entire ContextMenu of the XamGrid.
In order to avoid serializing unnecessary stuff that throws exceptions, you have to temporarily remove the unwanted "SummaryDefinitionCollection" members before saving. Once saving is complete, you finally restore the collection again.
Please let me know if there is a bug here somewhere (either in the serialization of stuff that doesn't match my "OnlySpecified" criteria, or in the NullReferenceException that is thrown from "GetDefinitionsBySummaryExecution")....
Hello and thank you for contacting us!
After reviewing the scenario I have logged this behavior in our tracking system with ID 212784 and the following case was created for you: CAS-168840-H4G4J7. The next step will be for a developer to review my investigation and confirm my findings or to offer a fix, or other resolution.