New to Kendo UI for AngularStart a free 30-day trial

SelectionDirective

Stores the row selection state of the Grid in memory (see example).

typescript
<kendo-grid kendoGridSelectBy="ProductID"></kendo-grid>

<kendo-grid [kendoGridSelectBy]="myKey"></kendo-grid>

Selector

[kendoGridSelectBy]

Inputs

NameTypeDefaultDescription

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.

rangeSelectionStartColumnIndex

number

0

Sets the starting column index for Shift+click range selection when cell selection is on.

rangeSelectionStartRow

RowArgs

0

Sets the starting row index for Shift+click range selection.

selectedKeys

any[]

[]

Stores the selected item keys.

kendoGridSelectBy

string | (context: RowArgs) => any

Sets the item key to store in selectedKeys. See example.

Events

NameTypeDescription

selectedKeysChange

EventEmitter<any[]>

Emits when the selectedKeys collection changes.

In this article
SelectorInputsEvents
Not finding the help you need?
Contact Support