Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top