首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未捕获TypeError: treelist.autoFitCloumn不是kendo treelist中的函数

未捕获TypeError: treelist.autoFitCloumn不是kendo treelist中的函数
EN

Stack Overflow用户
提问于 2016-06-23 17:53:05
回答 1查看 280关注 0票数 0

我使用的是Kendo treelist和那个autofitColumn函数。但它抛出的错误是,function列不是一个函数。

有人能说出问题出在哪里吗??

我的代码:

代码语言:javascript
复制
$('#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);
EN

回答 1

Stack Overflow用户

发布于 2016-06-23 21:02:20

您正在使用Kendo 2015.1.408。

2015.2.805中似乎添加了autoFitColumn()。

http://dojo.telerik.com/@Stephen/OxUNa

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37988181

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档