OGE logoOGE

Editing

Five edit modes over the same grid. Batch collects changes (dirty markers, strike-through deletes) until Save changes; form replaces the row with an inline labeled form; the other modes write back immediately. First Name is required; Department uses a custom *ogeEditTemplate. Deleting asks for confirmation (confirmDelete).

editing required ogeEditTemplate savingChanges
editing: batch 30 rows
No commands to display
Id
First Name
Last Name
Department
Salary
1
Elif
Aydın
HR
77000
2
Mert
Çelik
Finance
44000
3
Zeynep
Arslan
Engineering
81000
4
Deniz
Şahin
Finance
35000
5
Ayşe
Kılıç
Sales
81000
6
Mert
Şahin
Engineering
105000
7
Elif
Kılıç
Engineering
34000
8
Emre
Çelik
Sales
96000
9
Elif
Şahin
Support
40000
10
Zeynep
Şahin
Support
86000
30 rows

savingChanges log

  1. No saves yet

Cascading lookups & command-column customization

A lookup's dataSource may be a function of the row: while editing, it receives the draft values, so picking a country immediately re-filters the city editor. The command column is customizable through commandButtons — built-in edit/delete plus your own buttons with per-row visibility.

lookup cascading commandButtons
Task
Country
City
Done
Site survey
Türkiye
İstanbul
No
Install rollout
Türkiye
Ankara
Yes
Kickoff workshop
Germany
Berlin
No
Audit visit
Germany
Munich
No

Notes

  • cell: click a cell (or press Enter/F2 on a focused one), edit, commit with Enter; Tab commits and moves to the next editable cell, Esc reverts.
  • row / popup / form: use the command column's pencil button — all editable cells, a dialog, or an inline labeled form open at once with Save/Cancel.
  • confirmDelete: true asks before a non-batch delete.
  • editing.formItems picks the fields (and their order, labels and colSpan) that the form and popup editors show; formColCount fixes the layout column count.
  • batch: nothing touches the DataSource until Save changes; dirty cells get a corner marker, deletions a strike-through, and everything is sent as one ordered change set.
  • Validation blocks commits: [required] or any Angular [validators] mark the editor red and keep it open.
  • The same flow drives remote sources — implement insert/update/remove on your DataSource.