Hi,
I am having trouble in the following case:
Open the plnkr and select(click on the line not the checkbox) a line. Select the same line two more times. This means you will select the same line a total of three times.
http://plnkr.co/edit/488xAZGdgsPQ6p63BvrT?p=preview
You get this error:
zone.js:195 Uncaught TypeError: Cannot read property 'ProductID' of undefined
at t.e.getItemKey (VM18634 kendo-angular-grid.js:3)
at eval (VM18634 kendo-angular-grid.js:3)
at Array.forEach (<anonymous>)
at t.e.onSelectionChange (VM18634 kendo-angular-grid.js:3)
at b.schedulerFn [as _next] (VM18625 core.umd.js:3679)
at b.__tryOrUnsub (VM18626 Rx.system.min.js:7)
at b.next (VM18626 Rx.system.min.js:7)
at b._next (VM18626 Rx.system.min.js:7)
at b.next (VM18626 Rx.system.min.js:7)
at EventEmitter.b.next (VM18626 Rx.system.min.js:7)
The bug occur when you add "changeDetection: ChangeDetectionStrategy.OnPush,"
The actual problem comes from "this.currentSelection[item.index] = item.data;" line 74 in the selection.service.js.