Check documentation for the latest version of dhtmlxSuite showItemCheckbox DHTMLX Docs


shows/hides a checkbox for a tree item

void showItemCheckbox(string|number id,boolean state);
idstring|numberthe node's id, optional, set null to change states of all items
statebooleancheckbox's showing state (true - a checkbox is visible, false - invisible)

Available only in PRO Edition


// enable checkboxes in Tree, but not render them
tree.enableCheckBoxes(true, true);
// show a checkbox for the specified item
tree.showItemCheckbox(itemId, state);

Related samples


The method works only for individual items, not for the entire tree.

See also
Back to top