4 Answers, 1 is accepted
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
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
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
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
Hi Thomas,
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.