Retain Grid Group State After Grid Refresh

4 posts, 0 answers
  1. Matthew
    Matthew avatar
    18 posts
    Member since:
    Oct 2014

    Posted 24 Aug Link to this post

    I have a grid that is grouped on one particular field and is set to collapse all but the first group in the grid.  The end user is able to expand and collapse these groups without issue.  Where we run into a problem is when the user performs an action that requires a grid refresh.  This (understandably) causes the grid group panels to revert back to their initial collapsed state.  Is there a recommended approach for preserving the state of the grid after refresh?
  2. Eyup
    Admin
    Eyup avatar
    3012 posts

    Posted 26 Aug Link to this post

    Hello Matthew,

    You can check the following implementation to achieve this requirement:
    http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/persist-grouped-grid-collapsed-details-state

    Alternatively, you can preserve the entire grid configuration:
    http://demos.telerik.com/aspnet-mvc/grid/persist-state

    I hope this will prove helpful.

    Regards,
    Eyup
    Telerik by Progress
    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 MVC is VS 2017 Ready
  4. Matthew
    Matthew avatar
    18 posts
    Member since:
    Oct 2014

    Posted 26 Aug in reply to Eyup Link to this post

    Hi Eyup,

     

    Thanks for your response.  I just tried the demo that preserves the entire grid configuration.  It appears that this does not persist the expand/collapse state of grid groups.  I grouped by one of the columns in the demo grid, collapsed two of the groups, and then saved.  When I reloaded the grid state by pressing the load button, the collapsed groups did not stay collapsed.

     

    Thanks,

    Matt

  5. Eyup
    Admin
    Eyup avatar
    3012 posts

    Posted 30 Aug Link to this post

    Hello Matt,

    Yes, you are correct. The global preserving of grid options include expression based settings like filtering, sorting, grouping, paging, etc. It can be helpful to preserve the Grouped by columns, then apply the expand/collapse state explicitly using manual script logic.

    If you want this functionality built-in, you can add your ideas in our public feedback portal and our developers may consider implementing them for the future releases:
    http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback

    Regards,
    Eyup
    Telerik by Progress
    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
Back to Top
UI for ASP.NET MVC is VS 2017 Ready