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. Image for the cookie policy date

DockingManager save grid columns/styles but not content

Hi,
We`re using DockingManager to persist a users workspace.
Using dockManager.SaveDockState

We have a grid as a child in docking manager and we`d like to persist the grid visible columns and styles but not the actual content is there a way to disable the content from being persisted? Also is there a way of stopping a particular control within dockingManager from being persisted?

thanks

Darran


1 Reply

SN Surya Narayanan G Syncfusion Team December 28, 2011 10:54 AM UTC

Hi Darran,

Thanks for using Syncfusion products.

The Docking manager serialization has support only to save and load the state of the Docking manager layout but the element with in the layout will not serialize. If you need, you have to serialize the element separately and de-serialize before the load the docking manager state.

We have created a sample to illustrate serializing the properties of the Child controls using Serializable Interface which you can download under the following link.
In this sample we have used the GridColHelper Serializable wrapper class to get and set the properties of the Element while serializing and de- serializing.

Please let me know if the sample helps.

Regards
Surya Narayana




CS_4ac7c77a.zip

Loader.
Live Chat Icon For mobile
Up arrow icon