Check documentation for the latest version of dhtmlxSuite silent DHTMLX Docs

silent

calls treeview function w/o triggering events

void silent(function callback);
callbackfunctionuser-defined function

Example

myTreeView.attachEvent("onSelect", function(id, state){
    console.log(id, state);
});
 
myTreeView.selectItem("1"); // trigger event
myTreeView.selectItem("2"); // trigger event
 
myTreeView.silent(function(){
    myTreeView.selectItem("3"); // do not trigger event
    myTreeView.selectItem("4"); // do not trigger event
});
 
myTreeView.selectItem("5"); // trigger event
 
// console output
1 true
1 false
2 true
4 false
5 true

Back to top