Duplicated
Last Updated: 09 Dec 2024 14:03 by ADMIN
Enzo
Created on: 04 Dec 2024 19:37
Category: UI for Blazor
Type: Feature Request
12
Provide an option to keep collapsed/expanded state of grid grouped data when navigating through pages

On a grid grouped by a field (using GroupDescriptors) where the amount of records exceed the page limit, therefore generating multiple pages, provide an option to keep the collapsed/expanded states of the groups when navigating through the pages.

In-house we implemented the following approach to mitigate this issue: when calling OnRead event, after processing the data (order, filter, group, etc) we're mapping the groups and subgroups to its corresponding indexes. When page changing, we then store the current state of the groups, alongside its keys (aka  the label of the group). After page changing and mapping the groups and subgroups again, we just match the group names stored in this temporary state with the group names of the new page and restore the state.

For example: start with all groups initially collapsed, page 1 has groupA and groupB and user expanded groupB, changed to page 2, which has the remaining records of groupB and groupC. In this case it will restore groupB as expanded while groupC keeps collapsed.

Example to demonstrate the issue: https://blazorrepl.telerik.com/melmEeFi43owNZBe50

Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
2 comments
ADMIN
Hristian Stefanov
Posted on: 09 Dec 2024 14:03

Hi Enzo,

Thank you for bringing this to our attention. It seems we unintentionally marked this item as a duplicate of the wrong one. I confirm it is still a duplicate, and the correct original item is: Persist Groups Collapsed/Expanded State.

I’ve updated the status, and I apologize for any inconvenience caused.


Hristian Stefanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Enzo
Posted on: 06 Dec 2024 16:51

Hello,

This is different from what you guys marked as duplicated. This is almost (if not) a bug, since it is expanding the groups automatically, when it shouldn't. Page changes should not automatically expand all groups. If I expanded/collapsed a group, when navigating through pages the grid must track this and keep my group expanded/collapsed.

Could you review this, please?