I have a situation where the RadGrid Filter criteria is saved, but, the RadGrid doesn't execute the Filter expression (yes, I tried ReBind()) upon re-loading Persistence. Also, Sorts are not re-loaded either. Only the Filter criteria value is re-loaded upon returning to the page.
I have a RadTabStrip with (3) RadGrids. I implemented RadPersistenceManager with PersistenceSettings for each RadGrid, loading and saving with Page_Load and Page_Unload (code below, if needed). Everything was working great; Sort & Filter were the same when I returned from exiting the app or returning from another page. Something changed, though. I'm not sure where. The RadGrid Filter criteria is saved, but, the RadGrid doesn't execute the Filter expression, and the Sorts don't re-load. What could've possibly happened to cause this?
<telerik:RadPersistenceManager ID="RadPersistenceManager_AssetTabs" runat="server">
<PersistenceSettings>
<telerik:PersistenceSetting ControlID="RadGrid1" />
<telerik:PersistenceSetting ControlID="RadGrid2" />
<telerik:PersistenceSetting ControlID="RadGrid3" />
</PersistenceSettings>
</telerik:RadPersistenceManager>
protected void Page_Load(object sender, EventArgs e)
{
string theKey = "TelerikAspNetRadControlsPersistedState";
theKey = "StorageProvider_" + Session["UserName"].ToString();
RadPersistenceManager_AssetTabs.StorageProviderKey = theKey;
var fileNameAndPath = Server.MapPath("~/App_Data/" + theKey);
//bool IsPersistenceLoaded = (bool)Session["PersistenceLoaded"];
if (File.Exists(fileNameAndPath)) // && !IsPersistenceLoaded)
{
try
{
if (!IsPostBack)
{
RadPersistenceManager_AssetTabs.LoadState();
}
}
catch (Exception theError)
{
Console.WriteLine("Exception for RadPersistenceManager LoadState: {0}", theError);
}
}
}
protected void Page_Unload(object sender, System.EventArgs e)
{
try
{
RadPersistenceManager_AssetTabs.SaveState();
}
catch (Exception theError)
{
Console.WriteLine("Exception for RadPersistenceManager SaveState: {0}", theError);
}
}