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

Retain Grid Group State After Grid Refresh

4 Answers 274 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 24 Aug 2016, 03:26 PM
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?

4 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 26 Aug 2016, 02:25 PM
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
0
Matthew
Top achievements
Rank 1
answered on 26 Aug 2016, 03:44 PM

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

0
Eyup
Telerik team
answered on 30 Aug 2016, 01:10 PM
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
0
Thomas
Top achievements
Rank 1
Iron
answered on 20 Nov 2021, 08:15 PM

Hi,

is this also possible with Blazor?

My problem is that I have a very large dataset. Therefore I grouped 3 columns and collapse them with "args.GridState.CollapsedGroups" inside "OnStateInit" but if the user click a column to sort this column everything will be expanded again.

Thanks

Eyup
Telerik team
commented on 23 Nov 2021, 03:58 PM

Hi

Thank you for writing to us.

Telerik UI for Blazor is a separate product developed, maintained and supported by an entirely different Team. Thus, it would be a good idea if you direct this question to them by opening a new Support Ticket or a Forum ticket and choosing the appropriate Product.

You can also mention the URL of this thread so they can respond you accordingly.

Thank you for your understanding.

Tags
Grid
Asked by
Matthew
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Matthew
Top achievements
Rank 1
Thomas
Top achievements
Rank 1
Iron
Share this question
or