<divclass="apiDetail"><div><h2><span>Function(checked)</span><spanclass="path">zTreeObj.</span>checkAllNodes</h2><h3>Overview<spanclass="h3_info">[ depends on <spanclass="highlight_green">jquery.ztree.excheck</span> js ]</span></h3><divclass="desc"><p></p><divclass="longdesc"><p>Check or unCheck all nodes which have been initialized. It is valid when <spanclass="highlight_red">[setting.check.enable = true & setting.check.chkStyle = "checkbox"]</span></p><pclass="highlight_red">This method does not trigger 'beforeCheck' or 'onCheck' callback function.</p><pclass="highlight_red">Please use zTree object to executing the method.</p></div></div><h3>Function Parameter Descriptions</h3><divclass="desc"><h4><b>checked</b><span>Boolean</span></h4><p>checked = true means: check all nodes.</p><p>checked = false means: uncheck all nodes.</p>
<pclass="highlight_red">Don't affect the node is not loaded.</p><h4class="topLine"><b>Return </b><span>none</span></h4><p>no return value</p></div><h3>Examples of function</h3><h4>1. check all nodes</h4><prexmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");treeObj.checkAllNodes(true);</code></pre></div></div>