I would like to point out a few things with this sample (most current version of the controls):
Reload() Method
A catch {} is a really bad idea when someone wants to debug issues, especially if you finally get down to something like this:
System.IO.IsolatedStorage.IsolatedStorageException was caught
Message=Unable to determine application identity of the caller.
Which after some extensive searching boiled down to that GetUserStoreForApplication works for Silverlight and ClickOnce apps (which seemingly the sample application provided by Telerik seems to be...)
Hidden Columns
http://www.telerik.com/community/forums/silverlight/gridview/radgridviewsettings-cs-no-hide-column-functionality.aspx
Answer is there, but not part of the implementation (today).
Which brings me to my final point:
http://doc.xceedsoft.com/products/XceedWpfDataGrid/Xceed.Wpf.DataGrid.v4.2~Xceed.Wpf.DataGrid.DataGridControl~LoadUserSettings.html
Samples are nice, but having built in functionality with a factored storage story is the only proper way. This already cost me two hours and might actually force me to use another control suite because of the ongoing problems I have with this sample.
Please consider adding load / save of the entire column state (including a Reset to XAML defaults). Via a property and a configurable persistence key (grids tend to be named identically in different forms here).
Chris
Reload() Method
A catch {} is a really bad idea when someone wants to debug issues, especially if you finally get down to something like this:
System.IO.IsolatedStorage.IsolatedStorageException was caught
Message=Unable to determine application identity of the caller.
Which after some extensive searching boiled down to that GetUserStoreForApplication works for Silverlight and ClickOnce apps (which seemingly the sample application provided by Telerik seems to be...)
Hidden Columns
http://www.telerik.com/community/forums/silverlight/gridview/radgridviewsettings-cs-no-hide-column-functionality.aspx
Answer is there, but not part of the implementation (today).
Which brings me to my final point:
http://doc.xceedsoft.com/products/XceedWpfDataGrid/Xceed.Wpf.DataGrid.v4.2~Xceed.Wpf.DataGrid.DataGridControl~LoadUserSettings.html
Samples are nice, but having built in functionality with a factored storage story is the only proper way. This already cost me two hours and might actually force me to use another control suite because of the ongoing problems I have with this sample.
Please consider adding load / save of the entire column state (including a Reset to XAML defaults). Via a property and a configurable persistence key (grids tend to be named identically in different forms here).
Chris