I've attached a small demo that saves a PivotGrid using the PersistenceManager and then loads the persisted XML into a TextBlock.
Here are the steps to take to use the demo:
1- Run the app and you'll see a RadPivotGrid populated with sample data
2 - Click the "Save PivotGrid and show XML
You'll see the XML, with escaped characters, appear in the OutputTextBlock
Here's a screenshot of the result:
Here's the relevant code:
sender, RoutedEventArgs e)
Stream stream =
PersistenceManager manager =
stream = manager.Save(radPivotGrid1);
// Make sure you rewind the stream before trying to do anything with it
stream.Position = 0;
// You can use a StreamReader to read out the XML
(var sr =
OutputTextBlock.Text = await sr.ReadToEndAsync();
// See here on how to load
I also recommend taking a look at this page in the documentation
to see how to use the Load method. Let us know if you have any further questions or concerns, thank you for choosing Telerik by Progress.
Lance | Tech Support Engineer, Sr.
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin
, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.