0

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);
4

1 回答 1

0

您正在使用剑道 2015.1.408。

autoFitColumn() 似乎已在 2015.2.805 中添加。

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

于 2016-06-23T13:02:20.447 回答