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

Grid with Checkbox Selection, Filtering and Grouping

1 Answer 289 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 28 May 2020, 04:46 AM

Hi,

I'm trying to setup a grid that has the combination of checkbox selection, grouping and filtering. I'm struggling to get the grouping working with multiple levels. I can group the date, however expanding or collapsing a section will expand or collapse all sections. I'm wondering if there is a way to pass in a unique ID so I can expand or collapse only the corresponding section...

 

https://stackblitz.com/edit/grid-grouping-selection?embed=1&file=app/main.jsx

 

Thanks,

Peter

1 Answer, 1 is accepted

Sort by
0
Ina
Telerik team
answered on 28 May 2020, 01:55 PM

Hi Peter,

Thank you for the code example.

Please have in mind that the collapsed/expanded state of a group is part of the data. The `KendoGrid` is not doing it automatically.

In the example, you are saving which group is collapsed and afterward adding it to the data. The thing is that the groups are not real data and they do not have ID - unique value. This is why when we apply that group with value X is expanded, we will set it to all groups with that value.

I agree that we can provide a method that will take this into account as well and apply the correct expanded state. We will add this as an official enhancement and it can be monitored here:

https://github.com/telerik/kendo-react/issues/500

You can check the status to see when we have implemented the new logic.

Please let me know if you need more assistance.

Regards,
Ina
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.
Tags
General Discussions
Asked by
Peter
Top achievements
Rank 1
Answers by
Ina
Telerik team
Share this question
or