我使用的是Kendo treelist和那个autofitColumn函数。但它抛出的错误是,function列不是一个函数。
有人能说出问题出在哪里吗??
我的代码:
$('#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);发布于 2016-06-23 21:02:20
您正在使用Kendo 2015.1.408。
2015.2.805中似乎添加了autoFitColumn()。
http://dojo.telerik.com/@Stephen/OxUNa
https://stackoverflow.com/questions/37988181
复制相似问题