After 6.1.0 update the initial grouping is duplicated

1 Answer 39 Views
Grid
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Marco asked on 08 Aug 2024, 08:00 AM

Hy,

I have a grid with aggregates and I set an initial grouping on the OnStateInit method:

 

Everything is working fine but after the last update the initial grid view is as follows:

As you can see the grouping is duplicated. Can anyone help me?

The grid is attached

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 09 Aug 2024, 08:32 AM

Hi Marco,

Indeed, I reproduced the described behavior and I confirm this change occurs with the latest version 6.1.0.

The easiest thing to do is reset the GroupDescriptors collection in OnStateInit before adding new descriptors. In the meantime, I am waiting for input from the developers if the change was intended or I should log a bug on your behalf.

    private void OnGridStateInit(GridStateEventArgs<GridModel> args)
    {
        args.GridState.GroupDescriptors = new List<GroupDescriptor>();

        args.GridState.GroupDescriptors.Add( ... );
    }

 

Regards,
Dimo
Progress Telerik

Do you have a stake in the designеr-developer collaboration process? If so, take our survey to share your perspective and become part of this global research. You’ll be among the first to know once the results are out.
-> Start The State of Designer-Developer Collaboration Survey 2024

Dimo
Telerik team
commented on 12 Aug 2024, 10:13 AM

P.S. We confirm this to be a regression. Here is the public bug report for tracking. @Marco, I also updated your Telerik points.
Tags
Grid
Asked by
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Dimo
Telerik team
Share this question
or