I am using Kendo treelist and in that autofitColumn function. But it is throwing error that, Autofitcolumn is not a function.
Can anyone tell,what is the problem??
My code:
$('#treelist').kendoTreeList({
dataSource: dataSource,
editable: false,
columns: [
{ field: "FileType", title: "Files" },
{ field: "DestDrive", title: "Drives", template: "<select id= \"drivedropdown\" class=\"form-control\" # for (var i = -1, len=DestDrive.length;i<len ; i++) {# <option> #=DestDrive[i]# </option> #}# /> " },
{ field: "DestPath", title: "Path", template: "<input id=\"pathtextbox\" class=\"form-control input-sm \" />" }
],
scrollable: true,
//resizable: true,
messages: {
loading: "Fetching DB details...",
}
})var treeList = $("#treeList").data("kendoTreeList"); treeList.autoFitColumn(0);