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

How can we persist BarState, DockState etc. in a DB

Thread ID:





8590 Nov 13,2003 07:33 AM UTC Nov 14,2003 11:13 AM UTC WinForms 2
Tags: Tools
Ralf Huettl
Asked On November 13, 2003 07:33 AM UTC

Hi, we want to persis States via the Save mthods (SaveBarState,...) in a DB cause the user should have his state on every computer he is working. What is the easiest method to save the state in a DB? We want to do something like this: AppStateSerializer serializer = new AppStateSerializer( SerializeMode.IsolatedStorage, ??? ); // Save the statessyncfusion this.frameBarManager1.SaveBarState( serializer ); this.dockingManager1.SaveDockState( serializer ); this.tbManager.SaveTabGroupStates( serializer ); But where can i set the DB and the table to save the states? We found no example (only for xml). Thank you for helping out :-) Ralf

Administrator [Syncfusion]
Replied On November 13, 2003 10:08 PM UTC

Hi Ralf, I have consulted the Essential Suite Development Team in this regard, and will update you as soon as I hear from them. Thanks for your patience. Regards, Guru Patwal Syncfusion, Inc.

Administrator [Syncfusion]
Replied On November 14, 2003 11:13 AM UTC

Hi Ralf, Presently it is not possible to directly specify the database location in the AppStateSerializer path. You will have to first persist this information into a file or a memory stream and then save this information into the database. You could have a table with a single field in the database to store this information. Please make sure to use the appropriate DataType for the field in the table in the DB based on the medium of persistence. For example, if you use the SerializeMode.XMLFile enumeration value in the AppStateSerializer, you could persist this information in a Text field in a table in the DB. Information will be saved/retrieved to/from the DB in Text mode in this case. Please let me know if you need any other information. Thanks for choosing Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon