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

<div id="treelist"></div>
<script>
  $("#treelist").kendoTreeList({
    columns: [
      {
        field: "lastName",
        editor: "AutoComplete",
        editorOptions: {
          dataTextField: "lastName",
          dataSource: [
            { lastName: "Jackson" },
            { lastName: "Strong" },
            { lastName: "Simon"}
          ]
        }
      },
      {
        field: "number",
        format: "{0:0}",
        editor: "NumericTextBox",
        editorOptions: {
          decimals: 2,
          step: 0.1
        }
      },
      { field: "position"},
      { command: [ "edit" ] }
    ],
    editable: "popup",
    dataSource: [
      { id: 1, parentId: null, lastName: "Jackson", number: 10342.16, position: "CEO" },
      { id: 2, parentId: 1, lastName: "Weber", number: 18031.11, position: "VP, Engineering" }
    ]
  });
</script>
In this article