SelectionDirective
Directive
Stores the row selection state of the Grid in memory (see example).
Definition
Package:@progress/kendo-angular-grid
Selector:[kendoGridSelectBy]
Syntax:
html
<kendo-grid kendoGridSelectBy="ProductID"></kendo-grid>
<kendo-grid [kendoGridSelectBy]="myKey"></kendo-grid>
Inputs
columnKey
string | (column: any, columnIndex: number) => any
Sets a function to get the column key for a data cell.
The function must return a unique value for each column. The Grid uses the column index as the default column key.
kendoGridSelectBy
string | (context: RowArgs) => any
Sets the item key to store in selectedKeys.
See example.
Sets the starting column index for Shift+click range selection when cell selection is on.
Default:
0
Sets the starting row index for Shift+click range selection.
Default:
0
selectedKeys
any[]
Stores the selected item keys.
Default:
[]
Events
selectedKeysChange
EventEmitter<any[]>
Emits when the selectedKeys collection changes.