TreeView DataWindow

Table 211. 

DataWindow object properties for TreeView presentation style

Supported

AccessibleDescription

AccessibleName

AccessibleRole

CollapsedTree​NodeIconName

DefaultExpandTo​Level

ExpandedTreeNode​IconNam

Indent

Level

SelectNodeByMouse

ShowNodeConnect​Lines

ShowLeafNode​ConnectLines

ShowTreeNodeIcon

StateIconAlignMode

TreeNodeIconName

 

Unsupported

QueryMode

QuerySort

QueryClear

RtoLLayout

   

DataWindow control functions for TreeView DataWindow

Supported

Collapse

CollapseAll

CollapseAllChildren

CollapseLevel

Expand

ExpandAll

ExpandAllChildren

ExpandLevel

IsExpanded

SelectTreeNode

   

DataWindow control events for TreeView presentation style

Supported

Collapsing

Collapsed

Expanding

Expanded

TreeNodeSelecting

TreeNodeSelected

Unsupported

None

Performance differences between PowerBuilder and PowerServer Mobile

Limitations

DataWindows in TreeView presentation style are restrained by all limitations for DataWindows in Group presentation style.

Collapsing, Collapsed, Expanding, and Expanded events cannot be triggered if the nested TreeView DataWindows.

The height for the Tree.level band cannot be negative value.

You can not set a column to current column using SetColumn function if the column cannot be focused.

If the ScrollNextPage function is called in the last page, the current row on mobile will be set to the last row. This is different from that in PowerBuilder.

On mobile, the SetSort function sorts data before groups data. This is different from that in PowerBuilder.

Event sequence difference

Difference

The TreeNodeSelecting, TreeNodeSelected, RowFocusChanging and RowFocusChanged events cannot be triggered in the preview mode.

Selecting Tree Node on mobile will sequentially trigger the events TreeNodeSelecting, TreeNodeSelected, RowFocusChanging, RowFocusChanged.

Clicking the TreeView DataWindow on mobile will trigger the following events in sequence: LButtonDown, RowFocusChanging, RowFocusChanged, TreeNodeDelecting and TreeNodeSelected.

On mobile calling ScrollNextPage function will trigger the following event in sequence: Rowfocuschanging, Rowfocuschanged, and ScrollVertial.

Collapsing or expanding the tree node will trigger the collapsing(/expanding), collapsed(/expanded) and Resize events on mobile in sequence.

Do not assign values to rows in the grouping column in a loop. You can use dot notation to directly assign values to corresponding rows.