editorConfig
Optional. An object with configuration settings of the column's editor
Usage
editorConfig?: object;
Parameters
The structure of the editorConfig
object depends on the specified type of the editor or the column. Check the list below:
editorType: "combobox/multiselect" | For this type of editor, the editorConfig object can include the following properties:
|
editorType: "multiselect" | For this type of editor, the editorConfig object can include the following properties:
|
editorType:"datePicker" and column type:"date" | For this type of editor, the editorConfig object can include the following properties:
|
editorType:"input" and column type:"number" | For this combination, the editorConfig object can include the following properties:
|
Example
const grid = new dhx.Grid("grid_container", {
columns: [
{
id: "status",
header: [{ text: "Status" }],
editorType: "combobox",
// enables the ability to add new values into the combobox editor of the "Status" column
editorConfig: { newOptions: true },
options: [ "Done", "In Progress", "Not Started" ]
},
// more columns configuration objects
],
// more options
});
Related article: Editing Grid and separate columns
Related sample: Grid. Rich example with templates and different editors