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
585
Store additional metadata in DisplayLayout
posted

(version 19.1.20191.82)

A colleague wrote a custom `FilterCondition` a while ago, and when applied to a column, it automatically gets stored as part of the DisplayLayout. That is, if I later on call `grid.DisplayLayout.LoadFromXml()`, I get the same filter settings back. It appears they accomplished this by implementing `ISerializable` as well as having a constructor with `SerializationInfo` and `StreamingContext`.

I now wanted to do the same for a custom `GroupByComparer` and `GroupByEvaluator`. However, the same approach doesn't appear to work — when saving the layout, `ISerializable.GetObjectData` is never called.

Is there a way to store the GroupByComparer and/or GroupByEvaluator in the layout? Failing that, is there a more generalized way to add additional information to the layout (ideally, associated with the respective column)?

Parents
  • 7535
    Offline posted

    Hello Soren,

    Thank you for your post. If we can save and load the custom 'filterCondition' then i was expecting GroupByComparer should also support that. In order to understand the scenario i set up a sample of UltraGrid with a GroupByComparer column, i save and load the layout using  SaveAsXml and LoadFromXml and it working fine for me .I  attached my sample here.

    I am using version 19.2.

    If this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.

    Please let me know if I can provide any further assistance.

    Sincerely,

    Divya Jain

    InfragisticsSample.zip

Reply Children