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

Load only selected controls from isolated storage

1 Answer 55 Views
PersistenceFramework
This is a migrated thread and some comments may be shown as answers.
Paweł
Top achievements
Rank 1
Paweł asked on 24 Aug 2012, 08:49 AM
Hello!
Is any posibility to loady just one, selected control persisted to isolated storage by method:
private readonly PersistenceManager _persistanceManager;
 
private readonly IsolatedStorageProvider _isoStorageProvider;
 
...
 
_alertsDataService = alertsDataService;
 
_persistanceManager = new PersistenceManager();
 
_isoStorageProvider = new IsolatedStorageProvider(_persistanceManager);
 
...
 
_isoStorageProvider.SaveToStorage();


I'm using that method:

_isoStorageProvider.LoadFromStorage();


but all controls with telerik:PersistanceManager.StorageId property are loaded then (I want just one of them).

What should I do?

1 Answer, 1 is accepted

Sort by
0
Accepted
Zarko
Telerik team
answered on 27 Aug 2012, 04:11 PM
Hi PaweĊ‚,
If you want to load just one/some of the saved controls you should pass their StorageId as parameter/s to the
LoadFromStorage method:
_isoStorageProvider.LoadFromStorage(selectedControlStorageId);
If you have further questions please feel free to ask.

All the best,
Zarko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PersistenceFramework
Asked by
Paweł
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Share this question
or