Grid with Checkbox Selection, Filtering and Grouping

2 posts, 0 answers
  1. Peter
    Peter avatar
    3 posts
    Member since:
    Apr 2020

    Posted 27 May 2020 Link to this post

    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

  2. Ina
    Admin
    Ina avatar
    9 posts

    Posted 28 May 2020 Link to this post

    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.
Back to Top