Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2150
ContextMenu Serialization not Requested or Desired
posted

Can someone please help me with a xamGrid serialization issue?  As I understand it the only built-in way to persist customizations to a xamGrid is to use the persistence framework.*** 

I'm using "OnlySpecified" persistence options as follows:

<!-- Get occurrences of these "Settings". Very big XML... -->

<ig:PropertyNamePersistenceInfo PropertyName="FilteringSettings" Options="Contains"/>

<ig:PropertyNamePersistenceInfo PropertyName="FilterColumnSettings" Options="Contains"/>

<!-- Get column keys - important for supporting changes over time -->

<ig:PropertyNamePersistenceInfo PropertyName="Columns[].Key" Options="Contains"/>

The purpose of this is to serialize only the column filters.  The problem I'm finding is that the ContextMenu of the XamGrid is included in the serialization for some reason (and badly).  I don't understand why this is since my PropertyNamePersistenceInfo criteria don't seem to be met.

Can someone please try out my repro and let me know if there is an explanation?  I am using IG WPF 15.1.

Thanks, David

PS. ***This persistence framework unfortunately has caused me to waste away many hours and days.  There is too much of it that requires trial-and-error and virtually no examples.  I think it should be IG's responsibility to manage some *commonly*used* persistence settings at a granular level (eg. one for xamGrid column visibility settings, one for xamGrid column positioning settings, one for xamGrid column filtering, etc.).  Clients could then use the combination of these that they need.  Do all of your clients really need to sift your entire object models trying to figure out what obscure properties need serialization in order to persist something as basic as column visibility? </Complaining>

ContextMenuTest.zip