OGE logoOGE

Selection & Context Menu

Checkbox selection with a filtered-aware select-all; Ctrl/Shift+click also work. Navigate cells with the arrow keys and press Space to select. Right-click a row for the context menu.

selectionMode selectedKeys rowContextMenu keyboard
1.000 rows virtual filterRow
Selected: 0 rows
Id
First Name
Last Name
Department
City
1
Can
Kaya
HR
Ankara
2
Mert
Kılıç
Sales
İstanbul
3
Emre
Aydın
Engineering
İzmir
4
Deniz
Arslan
Engineering
İstanbul
5
Emre
Yılmaz
Engineering
İzmir
6
Zeynep
Kılıç
Support
İzmir
7
Can
Doğan
Finance
Antalya
8
Ayşe
Kaya
Engineering
Ankara
9
Deniz
Öztürk
Sales
Bursa
10
Selin
Arslan
Support
İzmir
11
Deniz
Demir
HR
Antalya
12
Elif
Demir
Engineering
Bursa
13
Emre
Aydın
Engineering
Antalya
14
Emre
Kaya
Finance
Ankara
15
Deniz
Şahin
Engineering
Antalya
16
Mert
Öztürk
Sales
Bursa
17
Deniz
Demir
Sales
Ankara
18
Selin
Kaya
Engineering
İzmir

Deferred selection

With selectionDeferred the grid never materializes a key list — the selection is a serializable FilterExpr in the two-way selectionFilter binding. Select-all over a million remote rows costs nothing: the expression captures the current filter, and unchecking a row just adds an and-not clause. Send the expression to your backend to process the selection server-side.

selectionDeferred selectionFilter
Id
First Name
Department
Salary
1
Can
HR
71000
2
Deniz
Engineering
57000
3
Deniz
Engineering
48000
4
Selin
Engineering
58000
5
Zeynep
Support
109000
6
Ayşe
HR
100000
7
Zeynep
Support
45000
8
Ali
Finance
89000
60 rows

selectionFilter

null  (nothing selected)

Notes

  • [(selectedKeys)] is a two-way model — push keys in from outside and the checkboxes follow.
  • Select-all operates on the filtered set: apply a filter first and only matching rows are selected. selectAllMode="page" restricts it to the visible page.
  • Shift-ranges span group rows correctly (only data rows are selected).
  • Ctrl+C (or copyToClipboard()) copies the selected rows as tab-separated text ready for Excel.
  • Full keyboard support: arrows, Home/End, PageUp/PageDown, Space to select — WAI-ARIA grid pattern, verified with axe.