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.
Changing settings of an existing kendo treeview (loadondemand)
-
21-07-2023 - |
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.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow