Cell Editors

View as Markdown

Summary

  • AdapTable provides 4 Cell Editors to enable quick data entry and edits:
    • Select editor: used for choosing from list of values
    • Numeric cell editor: used for editing numeric columns
    • Date Picker: used for editing date columns
    • Percentage cell editor: used for when editing values as percentages

AdapTable provides 4 Cell Editors so that data can be quickly and safely entered into AG Grid:

EditorColumns UsedAlways UsedUsed in Filters
Select (Dropdown) EditorAll ColumnsIf configured❌
Numeric Cell EditorNumeric Columns✅✅
Date PickerDate Columns✅✅
Percentage Cell EditorNumeric Columns with % Rendering❌❌

A few tips and tricks:

  • Use Numeric Cell Editor & Date Picker automatically for columns whose Cell Data Type is number or date
  • Turn on the Select Editor per column with showSelectCellEditor in Edit Options
  • Use the Percentage Cell Editor only where you set AdaptablePercentageEditor on the column and usually pair it with a percentage Number Display Format.
  • Numeric and date editors also appear in the Filter Bar for those column types
  • Select and Percentage editors are for in-grid editing only

Caution

  • Numeric Cell Editor and Date Picker are used by default for numeric and date columns
  • If a bespoke cellEditor is set on the Column Definition, that takes precedence

Hint

FAQ

Can I use my own AG Grid cell editor instead? Yes. Any cellEditor you define on the column takes precedence over AdapTable’s default numeric and date editors.

Where is Select Editor configuration documented? See Select Editor and Edit Options (showSelectCellEditor, customEditColumnValues).