Hello,
I am trying to save the custom settings of a RadGrid (Sort expressions, Filter expressions, Column settings).
To achieve this, I am using the GridSettingsPersister (as described in http://www.telerik.com/help/aspnet-ajax/grid-saving-settings-on-per-user-basis.html) and a StreamWriter to save the data in a .txt-file while the application is being closed (Page_Unload). I would like to load the settings using a StreamReader and the GridSettingsPersister the next time I start the application (Page_Load), but there seems to be an error with that (System.InvalidCastException). Visual Studio is telling me that [A]GridSettingsCollection can't be transformed into [B]GridSettingsCollection.
Is that error expected or is there a workaround for this situation?
Thanks in advance,
Robin
I am trying to save the custom settings of a RadGrid (Sort expressions, Filter expressions, Column settings).
To achieve this, I am using the GridSettingsPersister (as described in http://www.telerik.com/help/aspnet-ajax/grid-saving-settings-on-per-user-basis.html) and a StreamWriter to save the data in a .txt-file while the application is being closed (Page_Unload). I would like to load the settings using a StreamReader and the GridSettingsPersister the next time I start the application (Page_Load), but there seems to be an error with that (System.InvalidCastException). Visual Studio is telling me that [A]GridSettingsCollection can't be transformed into [B]GridSettingsCollection.
Is that error expected or is there a workaround for this situation?
Thanks in advance,
Robin