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 :-)
ADAdministrator Syncfusion Team November 13, 2003 05:08 PM
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.
ADAdministrator Syncfusion Team November 14, 2003 06:13 AM
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.