Unplanned
Last Updated: 23 Jul 2019 06:50 by ADMIN

 

RadRichTextBox (RTB) is used in MainWindow and no other controls are used.

Saving the RTB with PersistenceFramework results in endless loop of saving RTB dialogs and its template parts.

This results in StackoverflowException.

EDIT:

Option 1 for workaround

<telerik:RadRichTextBox x:Name="rtb" >
            <telerik:PersistenceManager.SerializationOptions>
                <telerik:SerializationMetadataCollection>
                    <telerik:PropertyNameMetadata Condition="Except" Expression="Dialog" SearchType="PropertyName" />
                </telerik:SerializationMetadataCollection>
            </telerik:PersistenceManager.SerializationOptions>
        </telerik:RadRichTextBox>

 

Option 2 for workaround

            PersistenceManager manager = new PersistenceManager();
            manager.PropertyPersisting += (o, ea)=>
            {
                if (!string.IsNullOrEmpty(ea.Name))
                {
                    if (ea.Name.Contains("Dialog"))
                    {
                        ea.Cancel = true;
                    }
                }
            };

            IsolatedStorageProvider isoProvider = new IsolatedStorageProvider(manager);            
            isoProvider.SaveToStorage(PersistenceManager.GetStorageId(this.rtb));

Unplanned
Last Updated: 04 Apr 2017 06:50 by ADMIN
The PersistenceFramework should be aware if any new UIElements are added to a layout it persists.
Unplanned
Last Updated: 30 Mar 2017 11:11 by John
PersistenceFramework does not persist property of type byte[] in CustomPropertyProvider scenario.

Use List<byte> as a workaround if applicable.
Unplanned
Last Updated: 31 Jan 2017 07:21 by ADMIN
ADMIN
Created by: Telerik Admin
Comments: 0
Category: PersistenceFramework
Type: Feature Request
2
Info for the root object needed in PErsistenceError event
Unplanned
Last Updated: 04 Jan 2017 07:34 by ADMIN
ADMIN
Created by: Kiril Vandov
Comments: 0
Category: PersistenceFramework
Type: Bug Report
0
Does not save correctly \r\n entries. When we load the stored date only "\n" is returned and the \r is lost.