Check documentation for the latest version of dhtmlxSuite showItemCheckbox DHTMLX Docs

showItemCheckbox

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

Example

// 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

Details

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

See also
Back to top