columns.encoded Boolean
(default: true)
If set to true
, the column value will be HTML-encoded before it is displayed. If set to false
, the column value will be displayed as is. By default, the column value is HTML-encoded.
Example - preventing HTML encoding
<div id="treelist"></div>
<script>
$("#treelist").kendoTreeList({
columns: [
{ field: "lastName"},
{ field: "position", encoded: false},
{ command: [ "edit" ] }
],
editable: "popup",
dataSource: [
{ id: 1, parentId: null, lastName: "Jackson", position: "<strong>CEO</strong>" },
{ id: 2, parentId: 1, lastName: "Weber", position: "VP, Engineering" }
]
});
</script>