This is a migrated thread and some comments may be shown as answers.

Cross Version support with IsolatedStorageProvider

3 Answers 8 Views
PersistenceFramework
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 28 Jul 2019, 08:18 AM

Hello,

I'm using IsolatedStorageProvider to save/load RadGridView settings in my application and I also wanted to provide the ability to serialize/deserialize settings when the application gets updated to a newer version of Telerik controls. If I were to use PersistenceManager, this would be possible via PersistenceManager.AllowCrossVersion property, but I cannot find anything similar when using IsolatedStorageProvider.

How can assembly upgrades be handled with IsolatedStorageProvider?

3 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 29 Jul 2019, 07:20 AM
Hello Mario,

The IsolatedStorageProvider works with PersistenceManager internally. Also, it allows you to create and provide the manager manually. This is done via the constructor of the provider and it will allow you to set the AllowCrossVersion property. Here is an example:
var manager = new PersistenceManager() { AllowCrossVersion = true };
var storageProvider = new IsolatedStorageProvider(manager);
I hope this helps.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Joe
Top achievements
Rank 1
answered on 29 Jul 2019, 08:58 AM

Thanks Martin.

One more followup question. AllowCrossVersion flag is important when loading settings saved with an older assembly, but what about saving the settings? The way I see it is that the older settings will be overwritten when saving so it shouldn't matter if the AllowCrossVersion flag is set in the IsolatedStorageProvider. Is my thinking correct, or should I still set the flag before calling IsolatedStorageProvider.SaveToStorage()?

0
Accepted
Martin Ivanov
Telerik team
answered on 29 Jul 2019, 09:45 AM
Hello Mario,

You are correct. The AllowCrossVersion flag is used only when loading settings.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
PersistenceFramework
Asked by
Joe
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Joe
Top achievements
Rank 1
Share this question
or