changeItemId(itemId,newItemId)
change item id
Topic(s): Node/level control;
File required:dhtmlXTree.js
itemId - old node idnewItemId - new node idclearCut()
clear cut
Topic(s): Add/delete;
File required:dhtmlXTree.js
closeAllItems(itemId)
collapse target node and all child nodes
Topic(s): Node/level control;
File required:dhtmlXTree.js
itemId - node idcloseItem(itemId)
collapse node
Topic(s): Node/level control;
File required:dhtmlXTree.js
itemId - identificator of nodedeleteChildItems(itemId)
delete all child of node
Topic(s): Add/delete;
File required:dhtmlXTree.js
itemId - node identificatordeleteItem(itemId,selectParent)
delete node
Topic(s): Add/delete;
File required:dhtmlXTree.js
itemId - node identificatorselectParent - If true parent of deleted item get selection, else no selected items leaving in tree.doCut()
mark selected item as cutted
Topic(s): Add/delete;
File required:dhtmlXTree.js
doPaste(itemId)
insert previously cutted branch
Topic(s): Add/delete;
File required:dhtmlXTree.js
itemId - id of new parent nodeenableAutoSavingSelected(mode)
[Commercial]
enable/disable autosaving selected node in cookie
Topic(s): Add/delete;
File required:dhtmlXTree_xw.js
mode - true/falseenableCheckBoxes(mode)
hide checkboxes
Topic(s): Initialization;
File required:dhtmlXTree.js
mode - enabled/disabledenableContextMenu(menu)
[Commercial]
enable context menu
Topic(s): Initialization;
File required:dhtmlXTree.js
menu - menu objectenableDragAndDrop(mode)
enable/disable drag-and-drop
Topic(s): Initialization;
File required:dhtmlXTree.js
mode - enabled/disabledenableDragAndDropScrolling(mode)
[Commercial]
enable/disable auto scrolling while drag-and-drop
Topic(s): Initialization;
File required:dhtmlXTree.js
mode - enabled/disabledenableMultiLineItems(width)
[Commercial]
enable multi line items
Topic(s): Initialization;
File required:dhtmlXTree.js
width - text width, if equls zero then use single lines items;enableSmartXMLParsing(mode)
[Commercial]
enable/disable smart XML parsing mode
Topic(s): Initialization;
File required:dhtmlXTree.js
mode - 1 - on, 0 - off;enableThreeStateCheckboxes(mode)
enable three state checkboxes
Topic(s): Initialization;
File required:dhtmlXTree.js
mode - 1 - on, 0 - off;enableTreeImages(mode)
enable tree images
Topic(s): Initialization;
File required:dhtmlXTree.js
mode - 1 - on, 0 - off;enableTreeLines(mode)
enableTreeLines(mode);
Topic(s): Appearence control;
File required:dhtmlXTree.js
mode - enable/disable tree linesfindItem(searchStr,direction,top)
find tree item by text, select and focus it
Topic(s): Add/delete;
File required:dhtmlXTree.js
searchStr - search textdirection - 0: top -> bottom; 1: bottom -> toptop - 1: start searching from topfindItemIdByLabel(searchStr,direction,top)
find tree item by text
Topic(s): Add/delete;
File required:dhtmlXTree.js
searchStr - search textdirection - 0: top -> bottom; 1: bottom -> toptop - 1: start searching from topfocusItem(itemId)
[Commercial]
focus item in tree
Topic(s): Initialization;
File required:dhtmlXTree.js
itemId - item IdgetAllChecked()
return list of identificators of nodes with checked checkboxes
Topic(s): Checkboxes/user data manipulation;
File required:dhtmlXTree.js
getAllCheckedBranches()
return list of identificators of nodes with checked checkboxes, and parent of that checkboxes
Topic(s): Checkboxes/user data manipulation;
File required:dhtmlXTree.js
getAllSubItems(itemId)
Returns the list of all children items from all next levels of tree, separated by commas.
Topic(s): Appearence control;
File required:dhtmlXTree.js
itemId - identificator of nodegetChildItemIdByIndex(itemId,index)
retun child node identificator by index
Topic(s): Selection control;
File required:dhtmlXTree.js
itemId - parent node identificatorindex - index of child nodegetItemColor(itemId)
get node color
Topic(s): Appearence control;
File required:dhtmlXTree.js
itemId - identificator of nodegetItemIdByIndex(itemId,index)
retun node identificator by index
Topic(s): Selection control;
File required:dhtmlXTree.js
itemId - node identificatorindex - index of nodegetItemText(itemId)
return node text
Topic(s): Appearence control;
File required:dhtmlXTree.js
itemId - identificator of nodegetLevel(itemId)
return node level
Topic(s): Node/level control;
File required:dhtmlXTree.js
itemId - identificator of nodegetParentId(itemId)
return parent node identificator
Topic(s): Node/level control;
File required:dhtmlXTree.js
itemId - identificator of nodegetSelectedItemId()
retun selected node identificator
Topic(s): Selection control;
File required:dhtmlXTree.js
getSelectedItemText()
retun selected node text
Topic(s): Selection control;
File required:dhtmlXTree.js
getSubItems(itemId)
Returns the list of all children items from the next level of tree, separated by commas.
Topic(s): Appearence control;
File required:dhtmlXTree.js
itemId - identificator of nodegetUserData(itemId,name)
return user data from target node
Topic(s): Checkboxes/user data manipulation;
File required:dhtmlXTree.js
itemId - target node identificatorname - key for user datahasChildren(itemId)
return count of childrens
Topic(s): Node/level control;
File required:dhtmlXTree.js
itemId - identificator of nodeinsertNewItem(parentId,itemId,itemText,itemActionHandler,image1,image2,image3,optionStr,childs)
create new child node
Topic(s): Add/delete;
File required:dhtmlXTree.js
parentId - parent node iditemId - new node iditemText - new node textitemActionHandler - 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)insertNewNext(parentItemId,itemId,itemName,itemActionHandler,image1,image2,image3,optionStr,childs)
create new node next to specified
Topic(s): Add/delete;
File required:dhtmlXTree.js
parentItemId - node iditemId - new node iditemName - new node textitemActionHandler - 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): Checkboxes/user data manipulation;
File required:dhtmlXTree.js
itemId - target node identificatorloadOpenStates(name)
[Commercial]
restore open nodes from cookie
Topic(s): Add/delete;
File required:dhtmlXTree_xw.js
name - optional,cookie nameloadState(name)
[Commercial]
load tree from cookie
Topic(s): Add/delete;
File required:dhtmlXTree_xw.js
name - optional,cookie nameloadXML(file)
load tree from xml file
Topic(s): Initialization;
File required:dhtmlXTree.js
file - link too XML fileloadXMLString(xmlString)
load tree from xml string
Topic(s): Initialization;
File required:dhtmlXTree.js
xmlString - XML stringopenAllItems(itemId)
expand target node and all child nodes
Topic(s): Node/level control;
File required:dhtmlXTree.js
itemId - node idopenItem(itemId)
expand node
Topic(s): Node/level control;
File required:dhtmlXTree.js
itemId - identificator of noderefreshItem(itemId)
refresh tree branch from xml
Topic(s): Appearence control;
File required:dhtmlXTree.js
itemId - identificator of node, if not defined tree super root used.restoreSelectedItem(name)
[Commercial]
restore selected item from cookie
Topic(s): Add/delete;
File required:dhtmlXTree_xw.js
name - optional, cookie namesaveOpenStates(name)
[Commercial]
save open nodes to cookie
Topic(s): Add/delete;
File required:dhtmlXTree_xw.js
name - optional,cookie namesaveSelectedItem(name)
[Commercial]
save selected item to cookie
Topic(s): Add/delete;
File required:dhtmlXTree_xw.js
name - optional, cookie namesaveState(name)
[Commercial]
save tree to cookie
Topic(s): Add/delete;
File required:dhtmlXTree_xw.js
name - optional, cookie nameselectItem(itemId,mode)
select node ( and optionaly fire onselect event)
Topic(s): Selection control;
File required:dhtmlXTree.js
itemId - node identificatormode - If true, script function for selected node will be called.serializeTree()
[Commercial]
return xml description of tree
Topic(s): Add/delete;
File required:dhtmlXTree_xw.js
setCheck(itemId,state)
change state of node's checkbox
Topic(s): Checkboxes/user data manipulation;
File required:dhtmlXTree.js
itemId - target node identificatorstate - checkbox statesetDragBehavior(mode)
[Commercial]
set Drag-And-Drop behavior
Topic(s): Initialization;
File required:dhtmlXTree.js
mode - behavior name (child or sibling)setDragHandler(func)
set function called when drag-and-drop event occured
Topic(s): Initialization;
File required:dhtmlXTree.js
aFunc - event handling functionsetDropHandler(func)
[Commercial]
set function called after drag-and-drap event occured
Topic(s): Initialization;
File required:dhtmlXTree.js
func - event handling functionsetImageArrays(arrayName,image1,image2,image3,image4,image5)
enableTreeLines(mode);
Topic(s): Appearence control;
File required:dhtmlXTree.js
arrayName - name of array: plus, minusimage1 - line crossed imageimage2 - image with top lineimage3 - image with bottom lineimage4 - image without lineimage5 - single root imagesetImagePath( newPath )
set path to image directory
Topic(s): Initialization;
File required:dhtmlXTree.js
newPath - path to image directorysetItemCloseable(itemId,flag)
prevent node from closing
Topic(s): Node/level control;
File required:dhtmlXTree.js
itemId - identificator of nodeflag - if 0 - node can't be closed, else node can be closedsetItemColor(itemId,defaultColor,selectedColor)
set node color
Topic(s): Appearence control;
File required:dhtmlXTree.js
itemId - identificator of nodedefaultColor - node colorselectedColor - selected node colorsetItemImage(itemId,image1,image2)
set node images
Topic(s): Appearence control;
File required:dhtmlXTree.js
itemId - identificator of nodeimage1 - node without childrens image or closed node image (if image2 specified)image2 - open node image (optional)setItemImage2(itemId, image1,image2,image3)
set node images
Topic(s): Appearence control;
File required:dhtmlXTree.js
itemId - identificator of nodeimage1 - node without childrens imageimage2 - closed node imageimage3 - open node imagesetItemText(itemId,newLabel)
set new node text (HTML allowed)
Topic(s): Appearence control;
File required:dhtmlXTree.js
itemId - identificator of nodenewLabel - node textsetOnCheckHandler(func)
set function called before checkbox checked/unchecked
Topic(s): Initialization;
File required:dhtmlXTree.js
func - event handling functionsetOnClickHandler(func)
set function called when tree node selected
Topic(s): Initialization;
File required:dhtmlXTree.js
func - event handling functionsetOnDblClickHandler(func)
set function called when tree node double clicked
Topic(s): Initialization;
File required:dhtmlXTree.js
func - event handling functionsetOnOpenHandler(func)
set function called before tree node opened/closed
Topic(s): Initialization;
File required:dhtmlXTree.js
func - event handling functionsetStdImages(image1,image2,image3)
set default images for nodes
Topic(s): Appearence control;
File required:dhtmlXTree.js
a0 - image for node without childrens;a1 - image for closed node;a2 - image for opened nodesetSubChecked(itemId,state)
change state of node's checkbox and all childnodes checkboxes
Topic(s): Checkboxes/user data manipulation;
File required:dhtmlXTree.js
itemId - target node identificatorstate - checkbox statesetUserData(itemId,name,value)
set user data for target node
Topic(s): Checkboxes/user data manipulation;
File required:dhtmlXTree.js
itemId - target node identificatorname - key for user datavalue - user datasetXMLAutoLoading(filePath)
enables dinamic loading from XML mode
Topic(s): Initialization;
File required:dhtmlXTree.js
filePath - name of script returning XML;