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

Selection with groups not possible

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 13 May 2019, 07:25 AM

Hello kendo community,

I have issues with selection on groups in kendo grid. I am trying to use groups and selection with kendo grid and it seems like the selection event trigger does not work in groups, however the checkbox does not apper to be checked. Is there any other solution or is there a way to select multiple rows which are grouped?

Here is a stackblitz demo: https://stackblitz.com/edit/angular-ujcgdv

Hope there is a fix for this.

Best, Mike

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 14 May 2019, 10:15 AM
Hi Mike,

The reason the Grid is not updated when the checkbox is checked, is that the Angular change detection is not triggered, as the Grid "data" property is bound to a function. Instead, it should be bound to a data collection, a GridDataResult type (an object with "total" and "data" properties) or an Observable of any of those types:

https://www.telerik.com/kendo-angular-ui/components/grid/data-binding/

This way the change detection will be triggered appropriately, and the changes in the selection will be reflected in the UI, e.g.:

https://stackblitz.com/edit/angular-ujcgdv-qbr5lg?file=app/app.component.ts

https://stackblitz.com/edit/angular-ujcgdv-ygiqct?file=app/app.component.ts

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or