beginUpdate();
The beginUpdate method selects update block checkbox.
The method adds a one to the update block checkbox. The update is executed if the block checkbox is equal to 0. To deselect the checkbox, use the TreeListBase.endUpdate method.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Pause tree update Tree.beginUpdate(); // Create nodes node7 = { Key: '7', Content: 'No7' }; node8 = { Key: '8', Content: 'No8' }; nodes = [node7, node8]; // Check update status console.log(Tree.isUpdating()? "Updating" : "Update mode is disabled"); // Load new nodes Tree.loadNodes(nodes); // Refresh tree Tree.endUpdate();
After executing the example the the added nodes are updated only after calling the TreeListBase.endUpdate method.
See also: