editing

Contains options that specify how grid content can be changed.

Type:

Object

DataGrid supports editing, insertion and the removing of grid values. The availability of performing a certain operation is specified by the allowUpdating, allowAdding and allowDeleting options.

Editing in DataGrid can be performed in four different modes. For a comprehensive overview of them, see the Row Mode, Batch Mode, Cell Mode and Form Mode articles.

See Also
NOTE
Before allowing a user to edit, insert and remove, make sure your data source supports all these actions.

View Demo

allowAdding

Specifies whether or not new grid records can be added at runtime.

Type:

Boolean

Default Value: false

allowDeleting

Specifies whether or not grid records can be deleted at runtime.

Type:

Boolean

Default Value: false

allowUpdating

Specifies whether or not grid records can be edited at runtime.

Type:

Boolean

Default Value: false

editEnabled

Deprecated

Use the allowUpdating option instead.

editMode

Deprecated

Use the mode option instead.

form

The form configuration object. Used only when the editing mode is "form".

Default form editors depend on the columns' configuration. If the generated form does not meet your requirements, and you need to reorganize form items or set other form parameters, specify the form option. To link a form item with a grid column, assign identical values to the form | items | dataField and columns | dataField options.

NOTE

There is a number of form parameters that you cannot specify using this option. They are the following.

See Also

insertEnabled

Deprecated

Use the allowAdding option instead.

mode

Specifies how grid values can be edited manually.

Type:

String

Default Value: 'row'
Accepted Values: 'row' | 'batch' | 'cell' | 'form'

Editing grid values requires the allowUpdating option to be set to true.

For a comprehensive overview of available edit modes, refer to the Row Mode, Batch Mode, Cell Mode and Form Mode articles.

When configuring the widget using ASP.NET MVC Wrappers, specify this option using the GridEditMode enum. This enum accepts the following values: Row, Batch, Cell and Form.

View Row Editing Demo View Batch Editing Demo View Cell Editing Demo View Form Editing Demo

removeEnabled

Deprecated

Use the allowDeleting option instead.

texts

Contains options that specify texts for editing-related grid controls.

Type:

Object

For detailed information on editing-related grid controls, see the Data Modification Controls topic.