문제

tell me please, how can I change properties of an existing kendo treeview on the fly.

For example, I've created a treeview:

container.kendoTreeView({
    dataSource: dataSource,
    checkboxes: {
        checkChildren: true
    },
    loadOnDemand: false,
    template: kendo.template(itemTemplate)
});

and want to change its loadOnDemand property like this:

container.data("kendoTreeView").set({
    loadOnDemand: false
})

as in some other plugins.

도움이 되었습니까?

해결책

You cannot. You need to re-initialize the whole TreeView. If loadOnDemand is set to false initially, setting it to true would not make a difference, the records are already fetched anyway.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top