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

Grid checkbox row selection keep existing selection

1 Answer 119 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jacky
Top achievements
Rank 1
Jacky asked on 29 Nov 2018, 10:24 PM

In the grid selection example, https://www.telerik.com/kendo-angular-ui/components/grid/selection/ , if I have existing rows checked, and I select another row, it removes the existing selections.  Is there a way to make selecting a row behave the same as checking the checkbox where it appends to current selection?  Basically, we want the same behavior as if you are selecting rows with CTRL pressed.

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 30 Nov 2018, 11:49 AM
Hi Jacky,

The built-in support for multiple selection/deselection of rows (besides using the checkbox column) is described in the following section of our documentation:

https://www.telerik.com/kendo-angular-ui/components/grid/selection/#toc-multiple-selection-mode

A possible approach for customizing the built-in functionality is using the cellClick event handler to add and remove clicked items from the selection accordingly (set checkboxOnly to true for this approach to work):

https://stackblitz.com/edit/angular-vrhiqq-kp3yps?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
General Discussions
Asked by
Jacky
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or