KoolTreeView Class [Javascript]

Summary

Methods Description
unselectAll Unselect all selected nodes
expandAll Expand all the treenodes
collapseAll Collapse all the treenodes
getSelectedIds Return array of id of selected nodes.
removeNode Remove a node.
getNode Get a node object.
registerEvent Register event for tree.

Methods Detail

unselectAllTop

void  unselectAll()

Unselect all selected nodes

Show/Hide Code

Supported from version: 1.0.0.0

expandAllTop

void expandAll()

Expand all the treenodes

Show/Hide Code

Supported from version: 2.0.0.0

collapseAllTop

void collapseAll()

Collapse all the treenodes

Show/Hide Code

Supported from version: 2.0.0.0

getSelectedIdsTop

string getSelectedIds()

Return array of id of selected nodes.

Show/Hide Code

Supported from version: 2.0.0.0

removeNodeTop

void  removeNode(string NodeId)

Remove a node.

Show/Hide Code

Supported from version: 1.0.0.0

getNodeTop

TreeNode getNode(string NodeId)

Get a node object.

Show/Hide Code

Supported from version: 2.0.0.0

registerEventTop

void registerEvent(string eventName, function handleEvent)

Register event for tree.
Allowed eventName:

"OnBeforeSelect"
"OnBeforeUnSelect"
"OnBeforeExpand"
"OnBeforeCollapse"
"OnBeforeStartEdit"
"OnBeforeEndEdit"
"OnBeforeDrop"
"OnBeforeSubTreeLoad"
"OnSelect"
"OnUnselect"
"OnExpand"
"OnCollapse"
"OnStartEdit"
"OnEndEdit"
"OnDrag"
"OnDrop"
"OnSubTreeLoad"

Show/Hide Code

Supported from version: 1.0.0.0