Node Object Property: ForceExpander 

Purpose

Forces display of an expander symbol for a node.

Return Value

type Boolean

Description

Set the ForceExpander property to TRUE, if you want to force the node to display an expander symbol, regardless of whether the node has child nodes or not.

ForceExpander is intended for use with a special performance-improvement scenario. An application may find it desirable to delay filling a tree. In this case, it does not fill entire trees but rather only particular folders, as requested by the user. When requested, the filling can be done by the Expand event handler. It is thus possible to add all children for the expanding node at the last moment.

However, this technique would not work when a node that had no Children, since in this case, the node would normally be displayed without an Expander symbol. As a result, it would not be possible to expand the node, and thus also impossible to fill the folder.

In this situation, the application can set the ForceExpander property to TRUE in order to allow the user to expand the corresponding node.