Search
TreeView.loadOnDemand Property
See Also
 






Gets or sets a value indicating whether TreeNode-s DOM will be created only after their parent node is expanded.

Namespace: MindFusion.Common.UI
File: TreeView.js

 Syntax

JavaScript  Copy Code

get loadOnDemand() {}

 Property Value

Boolean. true if items are loaded on demand, otherwise false.

 Example

The following code creates a new TreeView element using a <div> element with id "treeview" initialized in an HTML page. Then it sets its loadOnDemand property.

JavaScript  Copy Code
var treeView = new ui.TreeView(document.getElementById("treeView"));
treeView.width = treeView.height = ui.Unit.percentage(100);
treeView.theme = "standard";
treeView.loadOnDemand = true;

 See Also