columns.editorOptions Object
Defines the widget configuration when one is initialized as editor for the column (or the widget defined in items.editor
). For further info check the Form API: field.
Example - create a custom column editor using String literal
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [ {
field: "num",
editor: "NumericTextBox",
editorOptions: { step: 2 }
} ],
editable: true,
scrollable: false,
dataSource: {
data: [ { num: 1 }, { num: 2 } ],
schema: {
model: {
fields: {
num: { type: "number", validation: { required: true } }
}
}
}
}
});
</script>