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.
Syncfusion Feedback

Serializing GridControl and GridTreeControl

Thread ID:

Created:

Updated:

Platform:

Replies:

101345 Oct 17,2011 08:40 PM UTC Nov 28,2011 12:20 PM UTC WPF 1
loading
Tags: GridControl
Albert Gao
Asked On October 17, 2011 08:40 PM UTC

Hi. Is there any example for serializing/deserializing GridControl and GridTreeControl? I want to save the grid layout for both controls and I can't seem find the meaningful documentation on this feature or a good example for that matter.

This code generates an exception

var gclayout = thegrid.Model.SerializeAsString();

{"The type Syncfusion.Windows.Controls.Grid.GridTreeModel was not expected.
Use the XmlInclude or SoapInclude attribute to specify types that are not known statically."}

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterGridModel.Write20_GridModel(String n, String ns, GridModel o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterGridModel.Write21_GridModel(Object o)


Thanks
Ariel


Jawahar Jeevanandan J [Syncfusion]
Replied On November 28, 2011 12:20 PM UTC

Hi Ariel,

Thanks for your patience.

Currently we provide serialization support only for GridDataControl. We have logged a feature request in our database to add serialization support for GridTreeControl. We usually have an interval of at least three months between releases. And the feature implementation would also greatly depend on the factors such as product design, code compatibility and complexity. So we request you to check with the product page in our website regarding this feature in the upcoming release.

We have prepared the sample for serialization support in our GridDataControl and you can find the sample from the below link. Please try this sample and let us know whether this helps.

Please let us know if you have any queries.

Thanks,
Jawahar.



Serialization_4ffc4339.zip

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.

Warning Icon 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.Close Icon

;