Events
The TreeView HTC supports the following events:
OnError
OnItemClose
OnItemExecute
OnItemOpen
OnItemSelect
OnItemUnselect
OnError
The OnError event fires when the TreeView HTC encounters a developer error condition. In addition, if the m_bDebug variable in the HTC is set to True, an alert box appears. This switch can be very helpful in debugging problems that occur when you get the error message "The control could not load."
The event object property window.event.error contains a string with details about the error.
Return to top
OnItemClose
The OnItemClose event fires when a container item in the tree is closed.
The event object property window.event.XMLitem contains the XML node for the item that has been closed.
Return to top
OnItemExecute
The OnItemExecute event fires when an item in the tree is double-clicked.
The event object property window.event.XMLitem contains the XML node for the item that has been double-clicked.
Return to top
OnItemOpen
The OnItemOpen event fires when a container item in the tree is opened.
The event object property window.event.XMLitem contains the XML node for the item that has been opened.
When the item being opened contains the subordinate element expand (and no other subordinate elements), the event handling routine for this event must attach arguments to the corresponding form element. When it completes, the TreeView HTC calls the reload method with its sOp parameter set to 'expand'. The tree data returned by the form response then replaces the expand element itself in the DataXML data-island, which completes the deferred loading of that section of the tree.
Return to top
OnItemSelect
The OnItemSelect event fires when an item in the tree is selected.
The event object property window.event.XMLitem contains the XML node for the item that has been selected.
Return to top
OnItemUnselect
The OnItemUnselect event fires when a selected item in the tree becomes unselected.
The event object property window.event.XMLitem contains the XML node for the item that is no longer selected.
Return to top