DevExtreme - React Grid - Inline Cell Editing (v19.2)

DevExtreme Team Blog
22 January 2020

With our most recent release, the DevExpress React Grid allows you to edit data inline, without initiating row edits explicitly.

To enable this functionality, we created the new plugin TableInlineCellEditing. You combine TableInlineCellEditing with EditingState to incorporate the new functionality in your web app.

<Grid rows={rows} columns={columns} getRowId={getRowId}>
  <EditingState onCommitChanges={...} />
  <Table />
  <TableInlineCellEditing
    startEditAction="doubleClick"
    selectTextOnEditStart={true} />
</Grid>

Set the property startEditAction to either click (the default) or doubleClick to define how a user can activate editing for a cell. You can also set selectTextOnEditStart if you want cell text to be selected when editing begins.

Inline Editing

Changes are saved when an editable cell loses focus, or when the user presses the Enter key. The Esc key cancels changes.

Note that cell navigation with Tab and Shift-Tab is not implemented as a standard feature yet. However, the Inline Cell Editing Demo shows how this functionality can be added.

Let Us Know What You Think

Please let us know your thoughts about this new feature. You can leave comments below or submit issues to our GitHub repository.

What’s New in v20.1

To explore the scope, breadth and capabilities of our new products/features, please visit: https://www.devexpress.com/Subscriptions/New-2020-1.xml.
No Comments

Please login or register to post comments.