Editable
configurationIf set to true the user would be able to edit the data to which the grid is bound. By default editing is disabled.
Can be set to a string ("inline", "incell" or "popup") to specify the editing mode. The default editing mode is "incell".
Can be set to a JavaScript object which represents the editing configuration.
The "inline" and "popup" editing modes are triggered by the "edit" column command. Thus it is required to have a column with an "edit" command.
The "incell" editing mode combined with DataSource
autoSync: truesetting is not supported when using server-side grouping in the Grid. To be able to save edited values on each change, you can disable server-side grouping or trigger a DataSourcesync()manually inside thecellCloseevent.
editable
Boolean|Object|StringDefault: false
editable.cancelDelete
StringIf confirmation is enabled the grid will display a confirmation dialog when the user clicks the "destroy" command button. If the grid is in mobile mode this text will be used for the cancel button.
Default: "Cancel"
editable.confirmDelete
StringIf confirmation is enabled the grid will display a confirmation dialog when the user clicks the "destroy" command button. If the grid is in mobile mode this text will be used for the confirm button.
Default: "Delete"
editable.confirmation
Boolean|String|FunctionIf set to true the grid will display a confirmation dialog when the user clicks the "destroy" command button.
Can be set to a string which will be used as the confirmation text.
Can be set to a function which will be called, passing the model instance, to return the confirmation text.
This and all Grid configuration properties can be set (enabled/disabled) after the grid has been initialized with the setOptions method.
Default: true
editable.createAt
StringThe position at which new data items are inserted in the grid. Must be set to either "top" or "bottom". By default new data items are inserted at the top.
Default: "top"
editable.destroy
BooleanIf set to true the user can delete data items from the grid by clicking the "destroy" command button. Deleting is enabled by default.
Default: true
editable.mode
StringThe editing mode to use. The supported editing modes are "incell", "inline" and "popup".
The "inline" and "popup" editing modes are triggered by the "edit" column command. Thus it is required to have a column with an "edit" command.
As of Kendo UI version R3 2023, the
incellediting of cells on mobile devices is activated ondouble tapof a Grid cell.
Default: "incell"
editable.readonly
BooleanIf set to true the Grid will be initialized in read only mode. Users won't be able to add, remove or update records. Clicking on the edit, delete or add buttons will have no effect. In incell mode, clicking on the cell will not open it for editing.
API methods are not affected by this configuration. Calling editRow and editCell will still put the cell/row in edit mode. Calling addRow and removeRow will add/remove the row.
This property is useful in combination with the enableEditing and disableEditing methods. You can initialize the Grid as read only and enable editing later on.
Default: false
editable.template
String|FunctionThe template which renders popup editor.
The template should contain elements whose name HTML attributes are set as the editable fields. This is how the grid will know
which field to update. The other option is to use MVVM bindings in order to bind HTML elements to data item fields.
Use the
roledata attribute to initialize Kendo UI widgets in the template. Check data attribute initialization for more info. The validation that is set inschema.modelis not mapped automatically. As a result, when you use theeditable.templateoption, you have to add the validation for every element manually.
To change the size of the popup editor you can follow the approach outlined in this article.
editable.update
BooleanIf set to true the user can edit data items when editing is enabled.
Default: true
editable.window
ObjectConfigures the Kendo UI Window instance, which is used when the Grid edit mode is "popup". The configuration is optional.
For more information, please refer to the Window configuration API.