Persist only the IsPinned property

4 posts, 0 answers
  1. Scott
    Scott avatar
    14 posts
    Member since:
    Nov 2011

    Posted 01 Mar 2012 Link to this post

    I have two RadPanes that I wish to persist only the IsPinned property of.  I wish nothing else to be persisted, how would I code this?

    The two RadPanes are the only UIElements with a StorageID and their SerializationOptions are set as

    <telerik:PersistenceManager.SerializationOptions>
       <telerik:SerializationMetadataCollection>
          <telerik:PropertyNameMetadata Condition="Only" Expression="IsPinned" SearchType="PropertyName" />
       </telerik:SerializationMetadataCollection>
    </telerik:PersistenceManager.SerializationOptions>

    When I call Load after persisting, the entire RadDock is missing.

    Thank you
    Scott Lee
  2. Scott
    Scott avatar
    14 posts
    Member since:
    Nov 2011

    Posted 01 Mar 2012 Link to this post

    I set a handler for PersistenceError and found I am getting a "Parameter Count Mismatch" when saving.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Scott
    Scott avatar
    14 posts
    Member since:
    Nov 2011

    Posted 05 Mar 2012 Link to this post

    No help available?
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 06 Mar 2012 Link to this post

    Hi Scott ,

     By default the RadDocking provides its own Save/Load mechanism. In our Persistence Sample (same code for SL and WPF), we use the RadPersistenceFramework in order to save/load the state of the controls that are located in the RadPanes' Content too. "IsPinned" among with many other properties is being persisted by the default Docking's mechanism.
    Could you please elaborate more on your scenario,especially on why you need to persist only this property?
    Is it possible for you to send us the steps in a desired scenario, for example
    A) panes, their initial state
    B) operations performed over the panes
    C)Save
    D)operations performed over the panes
    E)Load
    F)panes state after load
    Thank you in advance for your cooperation.  

    Kind regards,
    Petar Mladenov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top