Skip to content

Commit 9d49de6

Browse files
committed
Add documentation for resizable config option
1 parent 18b6f30 commit 9d49de6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

api/javascript/ui/treelist.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,30 @@ prevent the user from locking or unlocking this column using the user interface.
796796
});
797797
</script>
798798

799+
### resizable `Boolean` *(default: false)*
800+
801+
If set to `true` allows users to resize columns by dragging their header borders. By default resizing is disabled.
802+
803+
#### Example - enable column resizing
804+
805+
<div id="treeList"></div>
806+
<script>
807+
$("#treeList").kendoTreeList({
808+
columns: [
809+
{ field: "id" },
810+
{ field: "name" },
811+
{ field: "age" }
812+
],
813+
resizable: true,
814+
dataSource: {
815+
data: [
816+
{ id: 1, parentId: null, name: "Jane Doe", age: 22 },
817+
{ id: 2, parentId: 1, name: "John Doe", age: 24 }
818+
]
819+
}
820+
});
821+
</script>
822+
799823
### reorderable `Boolean` *(default:false)*
800824

801825
If set to `true` the user could reorder the columns by dragging their header cells. By default reordering is disabled.

0 commit comments

Comments
 (0)