OGE logoOGE

Editing

All five editing modes of the data grid work on trees — the demo below uses form mode with a two-column layout. New rows can be inserted under a chosen parent and prefilled via initNewRow.

editing.mode formItems addRow(parentKey) initNewRow
form mode prefill insert under parent
new rows arrive pre-titled "Engineer"
No commands to display
Name
Title
Office
Grace Liskov
CEO
Ankara
Alan Ritchie
VP
İzmir
Edsger Lovelace
Director
Berlin
Barbara Dijkstra
Engineer
London
Donald Hamilton
Engineer
İstanbul
Margaret Hejlsberg
Engineer
Ankara
Dennis Turing
Director
İzmir
Bjarne Knuth
Engineer
Berlin
Anders Stroustrup
Engineer
London
Ada Hopper
Engineer
İstanbul
Grace Liskov
VP
Ankara
Alan Ritchie
Director
İzmir
Edsger Lovelace
Engineer
Berlin
Barbara Dijkstra
Engineer
London
Donald Hamilton
Engineer
İstanbul
Margaret Hejlsberg
Director
Ankara
Dennis Turing
Engineer
İzmir
Bjarne Knuth
Engineer
Berlin
Anders Stroustrup
Engineer
London
Ada Hopper
VP
İstanbul
Grace Liskov
Director
Ankara
Alan Ritchie
Engineer
İzmir
Edsger Lovelace
Engineer
Berlin
Barbara Dijkstra
Engineer
London
Donald Hamilton
Director
İstanbul
Margaret Hejlsberg
Engineer
Ankara
Dennis Turing
Engineer
İzmir
Bjarne Knuth
Engineer
Berlin

Notes

  • cell, row, batch, form and popup modes all ship; validation and *ogeEditTemplate custom editors come from the shared column definitions.
  • formItems selects, orders, relabels and spans the form fields; formColCount fixes the layout columns.
  • addRow(parentKey) pre-stages the parent reference, so the saved row lands under that node; initNewRow prefills any other field.
  • Saves flow through the cancelable savingChanges event into the DataSource; on lazy trees the affected levels re-fetch so the UI always shows persisted values.