Reverting Grid Back To Default Cause Persistence to Fail

2 posts, 0 answers
  1. Carl
    Carl avatar
    1 posts
    Member since:
    Sep 2014

    Posted 29 Jun 2015 Link to this post

    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)
                    {

                    }
                }

  2. Kostadin
    Admin
    Kostadin avatar
    1708 posts

    Posted 01 Jul 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top