DHTMLX Docs & Samples Explorer
Index
dhtmlxtreegrid
dhtmlxTreeGrid API Methods
dhtmlXGridObject Object
addRow
- adds new row to treeGrid
addRowAfter
- adds new row to treeGrid, after some other row
addRowBefore
- adds new row to treeGrid, before some other row
closeItem
- collapses row
collapseAll
- collapses all tree structure
collectTreeValues
- gets all possible values in column
deleteChildItems
- deletes all childs of row in question
enableTreeCellEdit
- enables/disables editor of tree cell ; enabled by default
enableTreeGridLines
- enables lines in treeGrid
expandAll
- expands all tree structure
filterTreeBy
- filters grid by mask
getAllSubItems
- gets list of id of all nested rows
getChildItemIdByIndex
- gets id of child item at specified position
getItemImage
- get image of tree col
getItemText
- gets real caption of tree col
getLevel
- returns level of treeGrid row
getOpenState
- returns open/close state of row
getParentId
- returns id of parent row
getSubItems
- returns list of child row id, sparated by comma
hasChildren
- returns children count
openItem
- expands the specified row
setFiltrationLevel
- allows developers to define , which level of tree must be used for filtering
setImageSize
- sets size of treegrid images
setItemCloseable
- enables/disables closing of row
setItemImage
- sets image of tree col
setItemText
- sets real caption of tree col
setOnOpenEndHandler
- sets function called after tree node opened/closed
setOnOpenStartHandler
- sets function called before tree node opened/closed
sortTreeRows
- sorts treegrid by specified column
eXcell_tree Object
setImage
- sets the image for the cell