Check documentation for the
latest version of dhtmlxSuite
setCheck DHTMLX Docs
Samples
Forum
Support
Documentation
/
Suite 5.X
assignKeys
attachEvent
changeItemId
clearCut
clearSelection
closeAllItems
closeItem
deleteChildItems
deleteItem
destructor
detachEvent
disableCheckbox
doCut
doPaste
editItem
enableActiveImages
enableAutoSavingSelected
enableAutoTooltips
enableCheckBoxes
enableContextMenu
enableDistributedParsing
enableDragAndDrop
enableDragAndDropScrolling
enableHighlighting
enableIEImageFix
enableImageDrag
enableItemEditor
enableKeySearch
enableKeyboardNavigation
enableLoadingItem
enableMercyDrag
enableMultiLineItems
enableMultiselection
enableRTL
enableRadioButtons
enableSingleRadioMode
enableSmartCheckboxes
enableSmartXMLParsing
enableTextSigns
enableThreeStateCheckboxes
enableTreeImages
enableTreeLines
findItem
findItemIdByLabel
focusItem
getAllChecked
getAllCheckedBranches
getAllChildless
getAllItemsWithKids
getAllPartiallyChecked
getAllSubItems
getAllUnchecked
getAttribute
getChildItemIdByIndex
getDistributedParsingState
getIndexById
getItemColor
getItemIdByIndex
getItemImage
getItemParsingState
getItemText
getItemTooltip
getLevel
getOpenState
getParentId
getSelectedItemId
getSelectedItemText
getSubItems
getUserData
getXMLState
hasChildren
insertNewChild
insertNewItem
insertNewNext
isItemChecked
isLocked
load
loadCSV
loadCSVString
loadJSArray
loadJSArrayFile
loadJSON
loadJSONObject
loadOpenStates
loadState
loadXML
loadXMLString
lockItem
lockTree
makeAllDraggable
makeDraggable
moveItem
openAllItems
openAllItemsDynamic
openItem
openItemsDynamic
openOnItemAdded
parse
preventIECaching
refreshItem
refreshItems
registerXMLEntity
restoreSelectedItem
saveOpenStates
saveSelectedItem
saveState
selectItem
serializeTree
serializeTreeToJSON
setAttribute
setCheck
setChildCalcHTML
setChildCalcMode
setCustomSortFunction
setDataMode
setDragBehavior
setEditStartAction
setEscapingMode
setIconSize
setIconsPath
setImageArrays
setImagesPath
setItemCloseable
setItemColor
setItemContextMenu
setItemImage
setItemStyle
setItemText
setItemTopOffset
setListDelimeter
setLockedIcons
setSerializationLevel
setSkin
setStdImages
setSubChecked
setUserData
setXMLAutoLoading
setXMLAutoLoadingBehaviour
showItemCheckbox
showItemSign
smartRefreshBranch
smartRefreshItem
sortTree
stopEdit
updateItem
Start
Tree
dhtmlXTree API
Methods
setCheck
sets the state of a node's checkbox
void
setCheck
(
string|number
id
,
string|number
state
);
id
string|number
target node's id
state
string|number
checkbox's state (0|1|"unsure")
Example
myTree.
setCheck
(
id
,
state
)
;
Related samples
Lists of check boxes states
See also
API
isItemChecked
setSubChecked
Articles
Manipulating Checkboxes
Back to top