Load only selected controls from isolated storage

2 posts, 1 answers
  1. Paweł
    Paweł avatar
    26 posts
    Member since:
    Jun 2011

    Posted 24 Aug 2012 Link to this post

    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?
  2. Answer
    Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 27 Aug 2012 Link to this post

    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.

Back to Top