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>
<script>
$("#treelist").kendoTreeList({
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" }
]
});
</script>