I’ve made another demo (similar to this one) on how to save and restore various RadGridView settings using IsolatedStorageFile and DataContractSerializer. Again to turn on this for your grid you can simply set RadGridViewSettings.IsEnabled attached property:

<
UserControl x:Class="SaveLoadSettingsWithRadGridViewForSilverlight.Page"
  
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
   
xmlns:ts="clr-namespace:Telerik.Settings">
    <
Gridx:Name="LayoutRoot"Background="White">
        <
telerik:RadGridView ts:RadGridViewSettings.IsEnabled="True" x:Name="RadGridView1" />
    </
Grid>
</
UserControl>

Saved settings are

  • Sorting
  • Grouping
  • Filtering
  • Frozen columns
  • Columns width and order

Enjoy!

[Download]


About the Author

Vladimir Enchev

is Director of Engineering, Native Mobile UI & Frameworks

Comments

Comments are disabled in preview mode.