v7.3.0

RowEdit
Feature

This feature allows editing of entire rows in a grid in a docked panel which by default slides out from the right.

By default, the editor is docked to the browser viewport, but it can be configured to be local to the grid.

The input fields are generated from the columns in the grid in the same way as the CellEdit, and the editor is a Panel.

By default, the editor works in batch mode. Fields are changed, and when the "Save" button is clicked (or the Enter key pressed), the record is updated with all the changes.

The editor can be configured to update the record as soon as a field is changed by setting the instantUpdate config to true.

Note that the revertOnEscape property of columns is respected, so pressing Escape will revert the field to the value of the field on focus.

Pressing Escape on a field which has not been changed will cancel the edit and close the editor.

To start editing a row, double-click a cell in the row, or press Enter or F2 when a cell is focused.

The start gesture can be configured by setting the triggerEvent config to 'cellClick' or 'cellDblClick'.

Editing can be prevented by setting the ignoreCSSSelector config to a CSS selector which matches elements that should not trigger editing.

Pressing Enter or clicking the "Save" button will save the changes and close the editor. Pressing Escape or clicking the "Cancel" button will close the editor without saving changes.

If instantUpdate is true, the record will be updated as soon as a field is changed (on blur or when changed by trigger action such as spin up or down in a number or date or time field), so Escape and the "Cancel" button revert the changes before closing the editor.

Clicking outside the editor will normally cancel the ongoing edit and start a new one on the clicked cell. This can be prevented by setting the continueEditingOnCellClick config to false.

This feature is disabled by default

See also

No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class
  • The Panel instance used as the editor.

    Has a corresponding runtime editor property.

  • Set to true to update the record as soon as a field is changed.

  • local : Booleanfalse

    Configure this as true to dock the editor to the grid's element instead of the browser viewport.

Properties

Properties are getters/setters or publicly accessible variables on this class
  • isRowEdit : Booleantrue
    READONLY
    static
    ADVANCED
    Identifies an object as an instance of RowEdit class, or subclass thereof.

Functions

Functions are methods available for calling on the class
    • onElementClick( )
      private
      ASYNC

      Finish editing if clicking below rows (only applies when grid is higher than rows). Also finish if event target is the subgrid which can happen if the pointer is moved during mouse down.

    Events

    Events are triggered for certain actions in this class and can be listened for to react to those actions in your code

    Event handlers

    Event handlers are callbacks called as a result of certain actions in this class

    Type definitions

    id: rowEdit

    Source path

    Grid/feature/RowEdit.js

    Demo

    examples/rowedit

    Contents