addRow(parentId,itemId,data,itemActionHandler,image1,image2,image3)
add row to grid
Object: dhtmlXTreeGridObject
Topic(s): Add/delete;
parentId - parent node iditemId - new node iddata - array of row dataitemActionHandler - 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)changeItemId(itemId,newItemId)
change item id
Object: dhtmlXTreeObject
Topic(s): Node/level control;
itemId - old node idnewItemId - new node idclearCut()
clear cut
Object: dhtmlXTreeObject
Topic(s): Add/delete;
closeAllItems(itemId)
collapse target node and all child nodes
Object: dhtmlXTreeObject
Topic(s): Node/level control;
itemId - node idcloseItem(itemId)
collapse node
Object: dhtmlXTreeObject
Topic(s): Node/level control;
itemId - identificator of nodedeleteChildItems(itemId)
delete all child of node
Object: dhtmlXTreeObject
Topic(s): Add/delete;
itemId - node identificatordeleteItem(itemId,selectParent)
delete node
Object: dhtmlXTreeObject
Topic(s): Add/delete;
itemId - node identificatorselectParent - If true parent of deleted item get selection, else no selected items leaving in tree.deleteRow(itemId)
delete row of grid
Object: dhtmlXTreeGridObject
Topic(s): Add/delete;
itemId - item iddoCut()
mark selected item as cutted
Object: dhtmlXTreeObject
Topic(s): Add/delete;
doPaste(itemId)
insert previously cutted branch
Object: dhtmlXTreeObject
Topic(s): Add/delete;
itemId - id of new parent nodeenableCheckBoxes(mode)
hide checkboxes
Object: dhtmlXTreeObject
Topic(s): Initialization;
enableDragAndDrop(mode)
enable/disable drag-and-drop
Object: dhtmlXTreeObject
Topic(s): Initialization;
enableTreeLines(mode)
enableTreeLines(mode);
Object: dhtmlXTreeObject
Topic(s): Appearence control;
mode - enable/disable tree linesgetAllChecked()
return list of identificators of nodes with checked checkboxes
Object: dhtmlXTreeObject
Topic(s): Checkboxes/user data manipulation;
getAllCheckedBranches()
return list of identificators of nodes with checked checkboxes, and parent of that checkboxes
Object: dhtmlXTreeObject
Topic(s): Checkboxes/user data manipulation;
getAllSubItems(itemId)
Returns the list of all children items from all next levels of tree, separated by commas.
Object: dhtmlXTreeObject
Topic(s): Appearence control;
itemId - identificator of nodegetChildItemIdByIndex(itemId,index)
retun child node identificator by index
Object: dhtmlXTreeObject
Topic(s): Selection control;
itemId - parent node identificatorindex - index of child nodegetGridData(itemId,index)
get data from specefied row by index
Object: dhtmlXTreeGridObject
Topic(s): Data manipulation;
itemId - item idindex - column indexgetItemColor(itemId)
get node color
Object: dhtmlXTreeObject
Topic(s): Appearence control;
itemId - identificator of nodegetItemIdByIndex(itemId,index)
retun node identificator by index
Object: dhtmlXTreeObject
Topic(s): Selection control;
itemId - node identificatorindex - index of nodegetItemText(itemId)
return node text
Object: dhtmlXTreeObject
Topic(s): Appearence control;
itemId - identificator of nodegetLevel(itemId)
return node level
Object: dhtmlXTreeObject
Topic(s): Node/level control;
itemId - identificator of nodegetParentId(itemId)
return parent node identificator
Object: dhtmlXTreeObject
Topic(s): Node/level control;
itemId - identificator of nodegetSelectedItemId()
retun selected node identificator
Object: dhtmlXTreeObject
Topic(s): Selection control;
getSelectedItemText()
retun selected node text
Object: dhtmlXTreeObject
Topic(s): Selection control;
getSubItems(itemId)
Returns the list of all children items from the next level of tree, separated by commas.
Object: dhtmlXTreeObject
Topic(s): Appearence control;
itemId - identificator of nodegetUserData(itemId,name)
return user data from target node
Object: dhtmlXTreeObject
Topic(s): Checkboxes/user data manipulation;
itemId - target node identificatorname - key for user datahasChildren(itemId)
return count of childrens
Object: dhtmlXTreeObject
Topic(s): Node/level control;
itemId - identificator of nodeinsertNewItem(parentId,itemId,itemText,itemActionHandler,image1,image2,image3,optionStr,childs)
create new child node
Object: dhtmlXTreeObject
Topic(s): Add/delete;
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
Object: dhtmlXTreeObject
Topic(s): Add/delete;
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
Object: dhtmlXTreeObject
Topic(s): Checkboxes/user data manipulation;
itemId - target node identificatorloadXML(file)
load tree from xml file
Object: dhtmlXTreeGridObject
Topic(s): Initialization;
file - link to XML fileloadXMLString(xmlString)
load tree from xml string
Object: dhtmlXTreeGridObject
Topic(s): Initialization;
xmlString - XML stringloadXMLString(xmlString)
load tree from xml string
Object: dhtmlXTreeObject
Topic(s): Private;
xmlString - XML stringopenAllItems(itemId)
expand target node and all child nodes
Object: dhtmlXTreeObject
Topic(s): Node/level control;
itemId - node idopenItem(itemId)
expand node
Object: dhtmlXTreeObject
Topic(s): Node/level control;
itemId - identificator of noderefreshItem(itemId)
refresh tree branch from xml
Object: dhtmlXTreeObject
Topic(s): Appearence control;
itemId - identificator of node, if not defined tree super root used.selectItem(itemId,mode)
select node ( and optionaly fire onselect event)
Object: dhtmlXTreeObject
Topic(s): Selection control;
itemId - node identificatormode - If true, script function for selected node will be called.setCheck(itemId,state)
change state of node's checkbox
Object: dhtmlXTreeObject
Topic(s): Checkboxes/user data manipulation;
itemId - target node identificatorstate - checkbox statesetDragHandler(func)
set function called when drag-and-drap event occured
Object: dhtmlXTreeObject
Topic(s): Initialization;
aFunc - event handling functionsetGridData(itemId,index,newValue)
set data in specefied row by index
Object: dhtmlXTreeGridObject
Topic(s): Data manipulation;
itemId - item idindex - column indexnewValue - new grid valuesetImageArrays(arrayName,image1,image2,image3,image4,image5)
enableTreeLines(mode);
Object: dhtmlXTreeObject
Topic(s): Appearence control;
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
Object: dhtmlXTreeObject
Topic(s): Initialization;
newPath - path to image directorysetItemCloseable(itemId,flag)
prevent node from closing
Object: dhtmlXTreeObject
Topic(s): Node/level control;
itemId - identificator of nodeflag - if 0 - node can't be closed, else node can be closedsetItemColor(itemId,defaultColor,selectedColor)
set node color
Object: dhtmlXTreeObject
Topic(s): Appearence control;
itemId - identificator of nodedefaultColor - node colorselectedColor - selected node colorsetItemImage(itemId,image1,image2)
set node images
Object: dhtmlXTreeObject
Topic(s): Appearence control;
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
Object: dhtmlXTreeObject
Topic(s): Appearence control;
itemId - identificator of nodeimage1 - node without childrens imageimage2 - closed node imageimage3 - open node imagesetItemText(itemId,newLabel)
set new node text (HTML allowed)
Object: dhtmlXTreeObject
Topic(s): Appearence control;
itemId - identificator of nodenewLabel - node textsetOnCheckHandler(func)
set function called before checkbox checked/unchecked
Object: dhtmlXTreeObject
Topic(s): Initialization;
func - event handling functionsetOnClickHandler(func)
set function called when tree node selected
Object: dhtmlXTreeObject
Topic(s): Initialization;
func - event handling functionsetOnDblClickHandler(func)
set function called when tree node double clicked
Object: dhtmlXTreeObject
Topic(s): Initialization;
func - event handling functionsetOnOpenHandler(func)
set function called before tree node opened/closed
Object: dhtmlXTreeObject
Topic(s): Initialization;
func - event handling functionsetStdImages(image1,image2,image3)
set default images for nodes
Object: dhtmlXTreeObject
Topic(s): Appearence control;
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
Object: dhtmlXTreeObject
Topic(s): Checkboxes/user data manipulation;
itemId - target node identificatorstate - checkbox statesetUserData(itemId,name,value)
set user data for target node
Object: dhtmlXTreeObject
Topic(s): Checkboxes/user data manipulation;
itemId - target node identificatorname - key for user datavalue - user datasetXMLAutoLoading(filePath)
enables dinamic loading from XML mode
Object: dhtmlXTreeGridObject
Topic(s): Initialization;
filePath - name of script returning XML;setXMLAutoLoading(filePath)
enables dinamic loading from XML mode
Object: dhtmlXTreeObject
Topic(s): Initialization;
filePath - name of script returning XML;