columns.field String

The field to which the column is bound. The value of this field is displayed by the column during data binding.

The field name has to be a valid Javascript identifier, has to contain only alphanumeric characters, $, or _, and must not start with a digit.

Example - specifyinging the column field

<div id="treelist"></div>
    columns: [
      { field: "lastName" },
      { field: "position" },
      { command: [ "edit" ] }
    editable: "popup",
    dataSource: [
      { id: 1, parentId: null, lastName: "Jackson", position: "CEO" },
      { id: 2, parentId: 1, lastName: "Weber", position: "VP, Engineering" }
In this article
Not finding the help you need? Improve this article