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.
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.
Hello,The fix for the NullReferenceException regarding issue 212784 is available in WPF versions 16.2.20162.2109, 16.1.20161.2231, 15.2.20152.2160. We have also spent extra time on the SummaryRowDefintions which are added to the serialized data and it was decided that a fix for this would result in other regressions in the functionality and this is functionality that would be kept the same at this point.Please let me know if you have any questions.