The CellEditing plugin
The Ext.grid.plugin.CellEditing
plugin injects editing at the cell level for a Grid. The editor
field can be a field instance or a field configuration which needs to be provided within the editor
configuration option within the columns
definition. With the CellEditing
plugin we can edit a cell at any time. If an editor is not specified for a particular column, that cell cannot be edited and it will be skipped when activated via the mouse or the keyboard.
When we configure a column to use an editor for cell editing, we should choose an appropriate field type to match the data type that this editor field will be editing. For example, to edit a date value in the cell, it would be useful to specify Ext.form.field.Date
as the editor.
Here, in the following code we are defining a grid class in which we are using the CellEditing
plugin to edit the cells:
Ext.define('Examples.view.cellediting.CellEditingGrid', { extend : 'Ext.grid.Panel', alias : 'widget.celleditingGrid'...