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.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

8590 Nov 13,2003 02:33 AM Nov 14,2003 06:13 AM Windows Forms 2
loading
Tags: Tools
Ralf Huettl
Asked On November 13, 2003 02:33 AM

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 05:08 PM

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 06:13 AM

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.

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.

;