我正在使用Kendo treelist和autofitColumn函数。但是,抛出错误,Autofitcolumn不是一个功能。
谁能说出来,问题是什么?
我的代码:
$('#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);
答案 0 :(得分:0)