hi.. I'm trying to follow alon the lines of this white paper. http://www.telerik.com/help/aspnet-ajax/grdsavingsettingsonperuserbasis.html
I have a class file (perist.vb) containing the class. I am confused on how to use the example however
my code behind is as follows . THe class from the white paper file is verbatim copy/paste
when trying to run it.. i end up with the object reference not set to object session("settings") = x.savesettings.
Can you please assist on this as I see I am returning the settings of the grid on savesettings... however I don't see how the GridInstance is to be used. Thank you.
I have a class file (perist.vb) containing the class. I am confused on how to use the example however
my code behind is as follows . THe class from the white paper file is verbatim copy/paste
| Imports Telerik.Web.ui |
| Partial Class temp_somepage |
| Inherits System.Web.UI.Page |
| Dim x As PersistMe |
| Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit |
| If Session("Settings") IsNot Nothing Then |
| x.LoadSettings(Session("Settings")) |
| End If |
| End Sub |
| Protected Sub RadGrid1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.PreRender |
| Session("Settings") = x.SaveSettings |
| End Sub |
| End Class |
when trying to run it.. i end up with the object reference not set to object session("settings") = x.savesettings.
Can you please assist on this as I see I am returning the settings of the grid on savesettings... however I don't see how the GridInstance is to be used. Thank you.