How to show non-expandable nodes in the Powerbuilder Datawindow tree

I am using the datawindow tree in powerbuilder. This is a mixture of wood and table.

My problem: the tree does not noticeably distinguish between expandable and non-expandable nodes. If the node does not expand, the icon in front of the node is still a plus sign, and if I click on the plus sign, the tree will show an empty node below the current node.

How to get standard behavior (node ​​does not expand, + or minus sign in front of node)? Do I need to change the data set or is it a tree property that I can set?

An alternative would be to use your own tree view, but this is less elegant than the tree data window in other ways.

+3
source share
1 answer

Unfortunately, this is a limitation of TreeView Datawindow. There is an expectation that data exists at all defined levels. It is impossible to show that node has no children. As insignificant as it may seem, a traditional tree-like image is the only way to go to this level of control.

+1
source

Source: https://habr.com/ru/post/1749392/


All Articles