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

Collapsing Grouped Results in Grid Issue

2 Answers 35 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Veteran
Charles asked on 07 Jul 2020, 04:45 AM

Issue: If I collapse one of the statuses and then I sort by status, it expands the one I collapsed and then collapses the one I didn’t collapse

Please see this for reference: https://gfycat.com/silentsecondaryhadrosaurus (I used the example found here: https://www.telerik.com/kendo-angular-ui/components/grid/grouping)

With that, I would just like to know if this is a limitation of Telerik grouping functionality.

Thanks in advance!

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Topalov
Telerik team
answered on 08 Jul 2020, 08:02 AM

Hi Charles,

Indeed, the observed behavior is a limitation of the Grid grouping functionality - it stores the expanded/collapsed state by row index, and when the order of the groups is reversed, the items are expanded/collapsed by their row index rather than the group they belong to. We are aware of this shortcoming, and will be working on an enhancement that will allow storing the collapsed/expanded groups in a more reliable manner, similar to the recent enhancement we introduced to our Master-detail functionality:

https://www.telerik.com/kendo-angular-ui/components/grid/master-detail/expanded-state/

Currently I cannot commit to any specific timeline, but until the described enhancement is ready, the only available workaround seems to store the expanded/collapsed state of the groups using the groupCollapse and groupExpand event handlers, and expand/collapse the needed groups programmatically via the Grid collapseGroup and expandGroup methods after changing their order. The groupChange event data contains information about the direction in the respective GroupDescriptors, allowing for the custom logic to collapse and expand the new groups by their index.

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Charles
Top achievements
Rank 1
Veteran
answered on 13 Jul 2020, 01:30 AM
Thank you. This was helpful.
Tags
General Discussions
Asked by
Charles
Top achievements
Rank 1
Veteran
Answers by
Dimiter Topalov
Telerik team
Charles
Top achievements
Rank 1
Veteran
Share this question
or