Вопрос

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