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

Persist only the IsPinned property

3 Answers 83 Views
PersistenceFramework
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 01 Mar 2012, 03:50 PM
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

3 Answers, 1 is accepted

Sort by
0
Scott
Top achievements
Rank 1
answered on 01 Mar 2012, 07:59 PM
I set a handler for PersistenceError and found I am getting a "Parameter Count Mismatch" when saving.
0
Scott
Top achievements
Rank 1
answered on 05 Mar 2012, 05:43 PM
No help available?
0
Petar Mladenov
Telerik team
answered on 06 Mar 2012, 12:00 PM
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 >>
Tags
PersistenceFramework
Asked by
Scott
Top achievements
Rank 1
Answers by
Scott
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or