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.
Unfortunately, activation email could not send to your email. Please try again.

Serialization of grouping grid

Thread ID:

Created:

Updated:

Platform:

Replies:

30071 Jun 9,2005 03:56 PM Jun 24,2005 02:42 PM Windows Forms 4
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On June 9, 2005 03:56 PM

I use WriteXmlSchema to serialize the grouping grid. This basically works fine, but I noticed that the status of the grouping panel (shown/not shown) was not serialized. This is a bit strange since the status of the new record row and filter bar row was serialized nicely. Is there an option that I can set to have serialization of the grouping panel also, or has this property been forgotten?

Administrator [Syncfusion]
Replied On June 10, 2005 02:18 AM

Hi Kjetil, It is missing because it is originally not part of the engine schema. GridEngine does not know about the GroupingControl specific properties. Same goes for the following properties: ShowNavigationBar, IntelliMousePanning, ThemesEnabled, BorderStyle, HorizontalScrollTips, HorizontalThumbTrack, VerticalScrollTips, VerticalThumbTrack, ShowNavigationBarToolTips, RightToLeft But it is a bit odd and we will figure out a good way to accommodate these properties, maybe even make them part of the engine object. I attached a sample with a GridGroupingControlSerializeState class that lets you serialize both the ShowGroupDropArea, ShowNavigationBar and Engine into one xml file. Use this class for now. You can also add your own additionoal properties there if you have a use for that. GridGroupingControlSerializeState.zip Stefan >I use WriteXmlSchema to serialize the grouping grid. This basically works fine, but I noticed that the status of the grouping panel (shown/not shown) was not serialized. This is a bit strange since the status of the new record row and filter bar row was serialized nicely. Is there an option that I can set to have serialization of the grouping panel also, or has this property been forgotten?

Administrator [Syncfusion]
Replied On June 12, 2005 09:34 AM

I used the provided example which worked fine. I think I actually prefer this approach since it is easy to add aditional properties to the file. I added a property containing a list with the the expansion state for each group in the grid, as discussed in a previous example. Thus, the expansion state is serialized along with the rest, which I think is very nice. Thanks a lot for your help, Stefan.

Ranjit
Replied On June 22, 2005 11:59 AM

Stefan, I am extending the GridGroupingControl. And currently I wish to serailize the attributes (provided by the base control and those added by me). Currently I am trying to serialize the control and I get teh following exception: "Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.ISite because it is an interface." If you could send me a sample to do this, would be of help. Regards, Ranjit

Administrator [Syncfusion]
Replied On June 24, 2005 02:42 PM

Hi Ranjit, Attached find a sample that has a custom property in a derived GroupingEngine object and serializes this engine together with the derived object. CustomSectionInGroupWithSerializeCustomProp.zip Stefan >Stefan, > >I am extending the GridGroupingControl. And currently I wish to serailize the attributes (provided by the base control and those added by me). > >Currently I am trying to serialize the control and I get teh following exception: "Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.ISite because it is an interface." > >If you could send me a sample to do this, would be of help. > >Regards, >Ranjit

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.

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.

;