This is a migrated thread and some comments may be shown as answers.

Reverting Grid Back To Default Cause Persistence to Fail

1 Answer 60 Views
Persistence Framework
This is a migrated thread and some comments may be shown as answers.
Carl
Top achievements
Rank 1
Carl asked on 29 Jun 2015, 11:27 AM

We have a RadGrid which storing the persistence settings into a database.  When we change the group, for example grouping on a column, the information is saved into the database, if we navigate away and back this state is restored, perfect.

If we deleted the grouping (or filter) on the database and so return it to it's default state, the application hangs and the IIS worker process maxs out.

We have tried using the file storage method and get the same result.  Anything but non-default grid layouts are stored and retrieved perfectly, return back to default cause the application to hang on retrival of the settings.

 -------------------------------------------------------------------------------------------

    <telerik:RadPersistenceManager ID="RadPersistenceManagerHome" runat="server">
        <PersistenceSettings>
            <telerik:PersistenceSetting ControlID="TaskListGrid" />
        </PersistenceSettings>
    </telerik:RadPersistenceManager> 

 ------------------------------------------------------------------------------------------- 

        protected void Page_Load(object sender, EventArgs e)
        {
            //RadPersistenceManager RadPersistenceManagerMain = (RadPersistenceManager)Master.FindControl("RadPersistenceManagerMain");

            if (IsPostBack)
            {
                if (Session["UserID"] != null)
                {

                    //RadPersistenceManagerMain.StorageProviderKey = Convert.ToString(Session["UserID"])+"-Home";
                    //RadPersistenceManagerMain.SaveState();
                    RadPersistenceManagerHome.StorageProviderKey = Convert.ToString(Session["UserID"]) + "-Home";
                    RadPersistenceManagerHome.SaveState();
                }
            }
            else if (!IsPostBack)
            {
                //RadPersistenceManagerMain.StorageProviderKey = Convert.ToString(Session["UserID"])+"-Home";
                RadPersistenceManagerHome.StorageProviderKey = Convert.ToString(Session["UserID"]) + "-Home";
                try
                {
                    //RadPersistenceManagerMain.LoadState();
                    RadPersistenceManagerHome.LoadState();

                    TaskListGrid.Rebind();
                }
                catch (Exception ex)
                {

                }
            }

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 01 Jul 2015, 02:03 PM
Hi Carl,

I am afraid this is a bug in our latest official release. Note that our developers already fix it and it will be available in our next internal build. 

Regards,
Kostadin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Persistence Framework
Asked by
Carl
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or