expand collaps

## dhtmlXTreeObject object API

assignKeys(...) [Professional]
configure keys used for keyboard navigation
Topic(s):
File required:dhtmlxtree_kn.js
changeItemId(itemId,newItemId)
change item id
Topic(s):
File required:dhtmlxtree.js
- itemId - old node id
- newItemId - new node id
clearCut()
clear cut
Topic(s):
File required:dhtmlxtree.js
clearSelection(...) [Professional]
unselect item in tree
Topic(s):
File required:dhtmlxtree.js
closeAllItems(itemId)
collapse target node and all child nodes
Topic(s):
File required:dhtmlxtree.js
- itemId - node id
closeItem(itemId)
collapse node
Topic(s):
File required:dhtmlxtree.js
- itemId - id of node
deleteChildItems(itemId)
delete all children of node
Topic(s):
File required:dhtmlxtree.js
- itemId - node id
deleteItem(itemId,selectParent)
delete node
Topic(s):
File required:dhtmlxtree.js
- itemId - node id
- selectParent - If true parent of deleted item get selection, else no selected items leaving in tree.
disableCheckbox(itemId,mode)
disable checkbox
Topic(s):
File required:dhtmlxtree.js
- itemId - Id of tree item
- mode - 1 - on, 0 - off;
doCut()
mark selected item as cutted
Topic(s):
File required:dhtmlxtree.js
doPaste(itemId)
insert previously cutted branch
Topic(s):
File required:dhtmlxtree.js
- itemId - id of new parent node
editItem(id)
enable editing of item's names
Topic(s):
File required:dhtmlxtree_ed.js
- mode - true/false
enableActiveImages(mode)
enable active images (clickable and dragable)
Topic(s):
File required:dhtmlxtree.js
- mode - 1 - on, 0 - off;
enableAutoSavingSelected(...) [Professional]
enable/disable autosaving selected node in cookie
Topic(s):
File required:dhtmlxtree_xw.js
enableAutoTooltips(...) [Professional]
enable auto tooltips (node text as tooltip)
Topic(s):
File required:dhtmlxtree.js
enableCheckBoxes(mode, hidden)
hide checkboxes (all checkboxes in tree)
Topic(s):
File required:dhtmlxtree.js
- mode - enabled/disabled
- hidden - if set to true, checkboxes not rendered but can be shown by showItemCheckbox
enableContextMenu(...) [Professional]
enable context menu
Topic(s):
File required:dhtmlxtree.js
enableDHTMLXTooltips(...) [Professional]
enable DHTMLX tootltips
Topic(s):
File required:dhtmlxtree.js
enableDistributedParsing(...) [Professional]
enable distributed parsing of long items list
Topic(s):
File required:dhtmlxtree.js
enableDragAndDrop(mode,rmode)
enable/disable drag-and-drop
Topic(s):
File required:dhtmlxtree.js
- mode - enabled/disabled [ can be true/false/temporary_disabled - last value mean that tree can be D-n-D can be switched to true later ]
- rmode - enabled/disabled drag and drop on super root
enableDragAndDropScrolling(mode)
enable/disable auto scrolling while drag-and-drop
Topic(s):
File required:dhtmlxtree.js
- mode - enabled/disabled
enableHighlighting(mode)
enable item highlighting (item text highlited on mouseover)
Topic(s):
File required:dhtmlxtree.js
- mode - 1 - on, 0 - off;
enableIEImageFix(mode)
replace IMG tag with background images - solve problem with IE image caching , not works for IE6 SP1
Topic(s):
File required:dhtmlxtree.js
- mode - true/false - enable/disable fix
enableImageDrag(mode)
create enable draging of item image with item text
Topic(s):
File required:dhtmlxtree.js
- mode - true/false
enableItemEditor(mode)
enable editing of item's names
Topic(s):
File required:dhtmlxtree_ed.js
- mode - true/false
enableKeySearch(...) [Professional]
enable search items by key pressing
Topic(s):
File required:dhtmlxtree_kn.js
enableKeyboardNavigation(...) [Professional]
enable keyboard navigation in tree
Topic(s):
File required:dhtmlxtree_kn.js
enableLoadingItem(text) [Experimental]
enable/disable loading XMl item
Topic(s):
File required:dhtmlxtree_lf.js
- text - text of temporary item
enableMercyDrag(...) [Professional]
enable drag without removing (copy instead of move)
Topic(s):
File required:dhtmlxtree.js
enableMultiLineItems(...) [Professional]
enable multi line items
Topic(s):
File required:dhtmlxtree.js
enableMultiselection(...) [Professional]
enable multiselection
Topic(s):
File required:dhtmlxtree.js
enableRTL(...) [Professional]
return xml description of tree
Topic(s):
File required:dhtmlxtree_rl.js
enableRadioButtons(...) [Professional]
replace checkboxes with radio buttons
Topic(s):
File required:dhtmlxtree.js
enableSingleRadioMode(...) [Professional]
replace checkboxes with radio buttons
Topic(s):
File required:dhtmlxtree.js
enableSmartCheckboxes(...) [Professional]
enable smart checkboxes ,true by default (auto checking childs and parents for 3-state checkboxes)
Topic(s):
File required:dhtmlxtree.js
enableSmartXMLParsing(...) [Professional]
enable/disable smart XML parsing mode (usefull for big, well structured XML)
Topic(s):
File required:dhtmlxtree.js
enableTextSigns(...) [Professional]
replace images with text signs
Topic(s):
File required:dhtmlxtree.js
enableThreeStateCheckboxes(mode)
enable three state checkboxes
Topic(s):
File required:dhtmlxtree.js
- mode - 1 - on, 0 - off;
enableTreeImages(mode)
enable tree images
Topic(s):
File required:dhtmlxtree.js
- mode - 1 - on, 0 - off;
enableTreeLines(mode)
enable/disable tree lines (parent-child threads)
Topic(s):
File required:dhtmlxtree.js
- mode - enable/disable tree lines
findItem(...) [Professional]
find tree item by text, select and focus it
Topic(s):
File required:dhtmlxtree.js
findItemIdByLabel(...) [Professional]
find tree item by text
Topic(s):
File required:dhtmlxtree.js
focusItem(itemId)
focus item in tree
Topic(s):
File required:dhtmlxtree.js
- itemId - item Id
getAllChecked()
return list of identificators of nodes with checked checkboxes, separated by comma
Topic(s):
File required:dhtmlxtree.js
getAllCheckedBranches()
return list of identificators of nodes with checked and third state checkboxes, separated by comma
Topic(s):
File required:dhtmlxtree.js
getAllChildless()
Returns the list of all items which doesn't have child nodes.
Topic(s):
File required:dhtmlxtree.js
getAllItemsWithKids()
Returns the list of all items which has child nodes, separated by commas.
Topic(s):
File required:dhtmlxtree.js
getAllPartiallyChecked()
return list of identificators of nodes with third state checkboxes, separated by comma
Topic(s):
File required:dhtmlxtree.js
getAllSubItems(itemId)
Returns the list of all children items from all next levels of tree, separated by commas.
Topic(s):
File required:dhtmlxtree.js
- itemId - id of node
getAllUnchecked(itemId)
return list of identificators of nodes with unchecked checkboxes, separated by comma
Topic(s):
File required:dhtmlxtree.js
getChildItemIdByIndex(itemId,index)
retun child node id by index
Topic(s):
File required:dhtmlxtree.js
- itemId - parent node id
- index - index of child node
getDistributedParsingState(...) [Professional]
get current state of distributed parsing
Topic(s):
File required:dhtmlxtree.js
Returns:true - still parsing; false - parsing finished
getIndexById(itemId)
retun node index in childs collection by Id
Topic(s):
File required:dhtmlxtree.js
- itemId - node id
getItemColor(itemId)
get node color
Topic(s):
File required:dhtmlxtree.js
- itemId - id of node
getItemIdByIndex(itemId,index)
retun node id by index
Topic(s):
File required:dhtmlxtree.js
- itemId - parent node id
- index - index of node, 0 based
getItemImage(...) [Professional]
get source of item's image
Topic(s):
File required:dhtmlxtree.js
getItemParsingState(...) [Professional]
get current parsing state of item
Topic(s):
File required:dhtmlxtree.js
Returns:1 - item already parsed; 0 - item not parsed yet; -1 - item in parsing process
getItemText(itemId)
return item text
Topic(s):
File required:dhtmlxtree.js
- itemId - id of node
getItemTooltip(itemId)
get item's tooltip
Topic(s):
File required:dhtmlxtree.js
- itemId - id of node
getLevel(itemId)
return node level (position in hierarchy)
Topic(s):
File required:dhtmlxtree.js
- itemId - id of node
getOpenState(itemId)
return open/close state
Topic(s):
File required:dhtmlxtree.js
- itemId - node id
getParentId(itemId)
return parent item id
Topic(s):
File required:dhtmlxtree.js
- itemId - id of node
getSelectedItemId()
retun selected item id
Topic(s):
File required:dhtmlxtree.js
getSelectedItemText()
retun selected node text
Topic(s):
File required:dhtmlxtree.js
getSubItems(itemId)
Returns the list of all children items from the next level of tree, separated by commas.
Topic(s):
File required:dhtmlxtree.js
- itemId - id of node
getUserData(itemId,name)
return user data from target node
Topic(s):
File required:dhtmlxtree.js
- itemId - target node id
- name - key for user data
getXMLState(...) [Professional]
return current state of XML loading
Topic(s):
File required:dhtmlxtree.js
hasChildren(itemId)
return number of childrens
Topic(s):
File required:dhtmlxtree.js
- itemId - id of node
insertNewChild(parentId,itemId,itemText,itemActionHandler,image1,image2,image3,optionStr,childs)
create new node as a child to specified with parentId
Topic(s):
File required:dhtmlxtree.js
- parentId - parent node id
- itemId - new node id
- itemText - new node label
- itemActionHandler - function fired on node select event (optional)
- image1 - image for node without childrens; (optional)
- image2 - image for closed node; (optional)
- image3 - image for opened node (optional)
- optionStr - options string (optional)
- childs - node children flag (for dynamical trees) (optional)
insertNewNext(itemId,newItemId,itemText,itemActionHandler,image1,image2,image3,optionStr,childs)
create new node next to specified
Topic(s):
File required:dhtmlxtree.js
- itemId - node id
- newItemId - new node id
- itemText - new node text
- itemActionHandler - function fired on node select event (optional)
- image1 - image for node without childrens; (optional)
- image2 - image for closed node; (optional)
- image3 - image for opened node (optional)
- optionStr - options string (optional)
- childs - node childs flag (for dynamical trees) (optional)
isItemChecked(itemId)
return state of nodes's checkbox
Topic(s):
File required:dhtmlxtree.js
- itemId - target node id
isLocked(...) [Professional]
return locked state of item
Topic(s):
File required:dhtmlxtree_li.js
Returns:true/false - locked/unlocked
loadOpenStates(...) [Professional]
restore open nodes from cookie
Topic(s):
File required:dhtmlxtree_xw.js
loadState(...) [Professional]
load tree from cookie
Topic(s):
File required:dhtmlxtree_xw.js
loadXML(file,afterCall)
load tree from xml file
Topic(s):
File required:dhtmlxtree.js
- file - link to XML file
- afterCall - function which will be called after xml loading
loadXMLString(xmlString,afterCall)
load tree from xml string
Topic(s):
File required:dhtmlxtree.js
- xmlString - XML string
- afterCall - function which will be called after xml loading
lockItem(...) [Professional]
lock/unlock item
Topic(s):
File required:dhtmlxtree_li.js
lockTree(...) [Professional]
lock tree
Topic(s):
File required:dhtmlxtree_li.js
makeAllDraggable(func)
make all HTML items with dragInDhtmlXTree attribute dragable in tree
Topic(s):
File required:dhtmlxtree_dragin.js
- func - custom drag processor function, optional
makeDragable(obj,func)
make item dragable in tree
Topic(s):
File required:dhtmlxtree_dragin.js
- obj - HTML object, or HTML object ID
- func - custom drag processor function, optional
moveItem(itemId,mode,targetId,targetTree)
move item (inside of tree)
Topic(s):
File required:dhtmlxtree.js
- itemId - item Id
- mode - moving mode (left,up,down,item_child,item_sibling,item_sibling_next,up_strict,down_strict)
- targetId - target Node in item_child and item_sibling mode
- targetTree - used for moving between trees (optional)
openAllItems(itemId)
expand target node and all child nodes
Topic(s):
File required:dhtmlxtree.js
- itemId - node id
openAllItemsDynamic(...) [Professional]
expand target node and all child nodes (same as openAllItems, but works in dynamic trees)
Topic(s):
File required:dhtmlxtree_xw.js
openItem(itemId)
expand node
Topic(s):
File required:dhtmlxtree.js
- itemId - id of node
openItemsDynamic(...) [Professional]
expand list of nodes in dynamic tree (wait of loading of node before expanding next)
Topic(s):
File required:dhtmlxtree_xw.js
openOnItemAdding(...) [Professional]
configure if parent node will be expanded immideatly after child item adding
Topic(s):
File required:dhtmlxtree.js
preventIECaching(mode)
prevent caching in IE by adding random seed to URL string
Topic(s):
File required:dhtmlxtree.js
- mode - enable/disable random seed ( disabled by default )
refreshItem(itemId)
refresh tree branch from xml (XML with description of child nodes rerequested from server)
Topic(s):
File required:dhtmlxtree.js
- itemId - id of node, if not defined tree super root used.
refreshItems(...) [Professional]
refresh specified tree nodes (get XML from server and updat only nodes included in itemIdList)
Topic(s):
File required:dhtmlxtree.js
registerXMLEntity(...) [Professional]
register XML entity for replacement while initialization
Topic(s):
File required:dhtmlxtree_xw.js
restoreSelectedItem(...) [Professional]
restore selected item from cookie
Topic(s):
File required:dhtmlxtree_xw.js
saveOpenStates(...) [Professional]
save open nodes to cookie
Topic(s):
File required:dhtmlxtree_xw.js
saveSelectedItem(...) [Professional]
save selected item to cookie
Topic(s):
File required:dhtmlxtree_xw.js
saveState(...) [Professional]
save tree to cookie
Topic(s):
File required:dhtmlxtree_xw.js
selectItem(itemId,mode,preserve)
select node ( and optionaly fire onselect event)
Topic(s):
File required:dhtmlxtree.js
- itemId - node id
- mode - If true, script function for selected node will be called.
- preserve - preserve earlie selected nodes
serializeTree(...) [Professional]
return xml description of tree
Topic(s):
File required:dhtmlxtree_xw.js
setCheck(itemId,state)
change state of node's checkbox
Topic(s):
File required:dhtmlxtree.js
- itemId - target node id
- state - checkbox state (0/1/unsure)
setChildCalcHTML(...) [Professional]
set child calculation prefix and postfix
Topic(s):
File required:dhtmlxtree.js
setChildCalcMode(...) [Professional]
set child calculation mode
Topic(s):
File required:dhtmlxtree.js
setCustomSortFunction(...) [Professional]
set custom sort functions, which has two parametrs - id_of_item1,id_of_item2
Topic(s):
File required:dhtmlxtree_sb.js
setDataMode(mode)
set default data transfer mode
Topic(s):
File required:dhtmlxtree.js
- mode - data mode (json,xml,csv)
setDragBehavior(...) [Professional]
set Drag-And-Drop behavior (child - drop as chils, sibling - drop as sibling, complex - complex drop behaviour )
Topic(s):
File required:dhtmlxtree.js
setDragHandler(func) [Depricated]
set function called when drag-and-drop event occured
Depricated! - use grid.attachEvent("onDrag",func); instead
Event Name:onDrag
Event occured after item was dragged and droped on another item, but before item moving processed.
- ID of source item
- ID of target item
- if node droped as sibling then contain id of item before whitch source node will be inserted
- source Tree object
- target Tree object
Event returns:true - confirm drag-and-drop; false - deny drag-and-drop;
Topic(s): Handlers;
File required:dhtmlxtree.js
- aFunc - event handling function
setDropHandler(...) [Professional] [Depricated]
set function called after drag-and-drap event occured
Depricated! - use grid.attachEvent("onDrop",func); instead
Event Name:onDrop
Event raised after drag-and-drop processed. Event also raised while programmatic moving nodes.
- ID of source item (ID after inserting in tree, my be not equal to initial ID)
- ID of target item
- if node droped as sibling then contain id of item before whitch source node will be inserted
- source Tree object
- target Tree object
Topic(s): Handlers;
File required:dhtmlxtree.js
setEditStartAction(click_IE, dblclick)
define which events must start editing
Topic(s):
File required:dhtmlxtree_ed.js
- click_IE - click on already selected item - true/false [true by default]
- dblclick - click on already selected item - true/false [true by default]
setEscapingMode(mode)
set escaping mode (used for escaping ID in server requests)
Topic(s):
File required:dhtmlxtree.js
- mode - escaping mode ("utf8" for UTF escaping)
setIconSize(...) [Professional]
set size of gfx icons
Topic(s):
File required:dhtmlxtree.js
setImageArrays(arrayName,image1,image2,image3,image4,image5)
set images used for parent-child threads drawing
Topic(s):
File required:dhtmlxtree.js
- arrayName - name of array: plus, minus
- image1 - line crossed image
- image2 - image with top line
- image3 - image with bottom line
- image4 - image without line
- image5 - single root image
setImagePath( newPath )
set path to image directory
Topic(s):
File required:dhtmlxtree.js
- newPath - path to image directory
setItemCloseable(itemId,flag)
prevent node from closing
Topic(s):
File required:dhtmlxtree.js
- itemId - id of node
- flag - if 0 - node can't be closed, else node can be closed
setItemColor(itemId,defaultColor,selectedColor)
set node color
Topic(s):
File required:dhtmlxtree.js
- itemId - id of node
- defaultColor - node color
- selectedColor - selected node color
setItemContextMenu(...) [Professional]
set context menu to individual nodes
Topic(s):
File required:dhtmlxtree.js
setItemImage(itemId,image1,image2)
set item images
Topic(s):
File required:dhtmlxtree.js
- itemId - id of node
- image1 - node without childrens image or closed node image (if image2 specified)
- image2 - open node image (optional)
setItemImage2(itemId, image1,image2,image3)
set item images
Topic(s):
File required:dhtmlxtree.js
- itemId - id of node
- image1 - node without childrens image
- image2 - closed node image
- image3 - open node image
setItemStyle(itemId,style_string)
set individual item style
Topic(s):
File required:dhtmlxtree.js
- itemId - node id
- style_string - valid CSS string
setItemText(itemId,newLabel,newTooltip)
set new node text (HTML allowed)
Topic(s):
File required:dhtmlxtree.js
- itemId - id of node
- newLabel - node text
- newTooltip - (optional)tooltip for the node
setItemTopOffset(...) [Professional]
set top offset for item
Topic(s):
File required:dhtmlxtree.js
setListDelimeter(...) [Professional]
set list separator (comma by default)
Topic(s):
File required:dhtmlxtree.js
setLockedIcons(...) [Professional]
set icon for locked items
Topic(s):
File required:dhtmlxtree_li.js
setOnCheckHandler(func) [Depricated]
set function called before checkbox checked/unchecked
Depricated! - use grid.attachEvent("onCheck",func); instead
Event Name:onCheck
Event raised immideatly after item in tree was checked/unchecked.
- ID of item which will be checked/unchecked
- Current checkbox state. 1 - item checked, 0 - item unchecked.
Topic(s): Handlers;
File required:dhtmlxtree.js
- func - event handling function
setOnClickHandler(func) [Depricated]
set function called when tree node clicked, also can be forced to call from API
Depricated! - use grid.attachEvent("onClick",func); instead
Event Name:onClick
Event raised immideatly after text part of item in tree was clicked, but after default onClick functionality was processed.
- ID of clicked item
- ID of previously selected item
Topic(s): Handlers;
File required:dhtmlxtree.js
- func - event handling function
setOnDblClickHandler(func) [Depricated]
set function called when tree node double clicked
Depricated! - use grid.attachEvent("onDblClick",func); instead
Event Name:onDblClick
Event raised immideatly after item in tree was doubleclicked, before default onDblClick functionality was processed.
- ID of item which was doubleclicked
Event returns:true - confirm opening/closing; false - deny opening/closing;
Topic(s): Handlers;
File required:dhtmlxtree.js
- func - event handling function
setOnDragIn(...) [Professional] [Depricated]
set function called when tree item draged over another item
Depricated! - use grid.attachEvent("onDragIn",func); instead
Event Name:onDragIn
Event raised when item draged other other dropable target
- ID draged item
- ID potencial drop landing
- source object
- target object
Event returns:true - allow drop; false - deny drop;
Topic(s):
File required:dhtmlxtree.js
setOnEditHandler(func) [Depricated]
set onEdit handler ( multi handler event)
Depricated! - use grid.attachEvent("onEdit",func); instead
Event Name:onEdit
Event occurs on 4 different stages of edit process: before editing started (cancelable), after editing started, before closing (cancelable), after closed
- state - 0 before editing started , 1 after editing started, 2 before closing, 3 after closed
- id - id of edited items
- tree - tree object
- value - for stage 0 and 2, value of editor
Event returns:for stages 0 and 2; true - confirm opening/closing, false - deny opening/closing; text - edit value
Topic(s):
File required:dhtmlxtree_ed.js
- func - function which will be called on edit related events
setOnLoadingEnd(...) [Professional] [Depricated]
set function called after xml loading/parsing ended
Depricated! - use grid.attachEvent("onXLE",func); instead
Event Name:onXLE
event fired simultaneously with ending XML parsing, new items already available in tree
- tree object
- last parsed parent id
Topic(s): Handlers;
File required:dhtmlxtree.js
setOnLoadingStart(...) [Professional] [Depricated]
set function called before xml loading/parsing started
Depricated! - use grid.attachEvent("onXLS",func); instead
Event Name:onXLS
event fired simultaneously with starting XML parsing
- tree object
- item id, for which xml loaded
Topic(s): Handlers;
File required:dhtmlxtree.js
setOnMouseInHandler(func) [Depricated]
set function called when mouse is over tree node
Depricated! - use grid.attachEvent("onMouseIn",func); instead
Event Name:onMouseIn
Event raised immideatly after mouse hovered over item
- ID of item
Topic(s): Handlers;
File required:dhtmlxtree.js
- func - event handling function
setOnMouseOutHandler(func) [Depricated]
set function called when mouse is out of tree node
Depricated! - use grid.attachEvent("onMouseOut",func); instead
Event Name:onMouseOut
Event raised immideatly after mouse moved out of item
- ID of clicked item
Topic(s): Handlers;
File required:dhtmlxtree.js
- func - event handling function
setOnOpenEndHandler(func) [Depricated]
set function called after tree node opened/closed
Depricated! - use grid.attachEvent("onOpenEnd",func); instead
Event Name:onOpenEnd
Event raised immideatly after item in tree got command to open/close , and before item was opened//closed. Event also raised for unclosable nodes and nodes without open/close functionality - in that case result of function will be ignored.
- ID of node which will be opened/closed
- Current open state of tree item. 0 - item has not childs, -1 - item closed, 1 - item opened.
Topic(s): Handlers;
File required:dhtmlxtree.js
- func - event handling function
setOnOpenStartHandler(func) [Depricated]
set function called before tree node opened/closed
Depricated! - use grid.attachEvent("onOpenStart",func); instead
Event Name:onOpenStart
Event raised immideatly after item in tree got command to open/close , and before item was opened//closed. Event also raised for unclosable nodes and nodes without open/close functionality - in that case result of function will be ignored.
- ID of node which will be opened/closed
- Current open state of tree item. 0 - item has not childs, -1 - item closed, 1 - item opened.
Event returns:true - confirm opening/closing; false - deny opening/closing;
Topic(s): Handlers;
File required:dhtmlxtree.js
- func - event handling function
setOnRightClickHandler(func) [Depricated]
set function called when tree node selected
Depricated! - use grid.attachEvent("onRightClick",func); instead
Event Name:onRightClick
Event occured after right mouse button was clicked.
- (string) ID of clicked item
- (object) event object
Topic(s): Handlers;
File required:dhtmlxtree.js
- (function) func - event handling function
setOnSelectStateChange(func) [Depricated]
set function called when tree node selected or unselected, include any select change caused by any functionality
Depricated! - use grid.attachEvent("onSelect",func); instead
Event Name:onSelect
Event raised immideatly after selection in tree was changed
- selected item ID ( list of IDs in case of multiselection)
Topic(s): Handlers;
File required:dhtmlxtree.js
- func - event handling function
setSerializationLevel(...) [Professional]
configure XML serialization
Topic(s):
File required:dhtmlxtree_xw.js
setStdImages(image1,image2,image3)
set default images for nodes (must be called before XML loading)
Topic(s):
File required:dhtmlxtree.js
- a0 - image for node without childrens;
- a1 - image for closed node;
- a2 - image for opened node
setSubChecked(itemId,state)
change state of node's checkbox and all childnodes checkboxes
Topic(s):
File required:dhtmlxtree.js
- itemId - target node id
- state - checkbox state
setUserData(itemId,name,value)
set user data for target node
Topic(s):
File required:dhtmlxtree.js
- itemId - target node id
- name - key for user data
- value - user data
setXMLAutoLoading(filePath)
enables dynamic loading from XML
Topic(s):
File required:dhtmlxtree.js
- filePath - name of script returning XML; in case of virtual loading - user defined function
setXMLAutoLoadingBehaviour(...) [Professional]
define which script be called on dynamic loading
Topic(s):
File required:dhtmlxtree.js
showItemCheckbox(...) [Professional]
show/hide checkbox for tree item (work only for individual items, not for all tree )
Topic(s):
File required:dhtmlxtree.js
showItemSign(...) [Professional]
show/hide (+/-) icon (work only for individual items, not for all tree )
Topic(s):
File required:dhtmlxtree.js
smartRefreshBranch(...) [Professional]
refresh specified tree branch (get XML from server, add new nodes, remove not used nodes)
Topic(s):
File required:dhtmlxtree.js
smartRefreshItem(...) [Professional]
refresh specified tree item (get XML from server, add new nodes, remove not used nodes)
Topic(s):
File required:dhtmlxtree.js
sortTree(...) [Professional]
reorder items in tree
Topic(s):
File required:dhtmlxtree_sb.js
stopEdit()
switch current edited item back to normal state
Topic(s):
File required:dhtmlxtree_ed.js
updateItem(...) [Professional]
update item properties
Topic(s):
File required:dhtmlxtree.js