Treeview node properties

Hi,

Is it possible to set the width, height and background colour separately on each node of a Treeview? Or, can the icon/graphic be set separately for each node?

I see in sourceforge there is a Servoy treeview bean, but have no idea how to access this; couldn’t find anything on Sourceforge to explain how I connect to or download something… :?

Thanks,
Gordon

The DBTreeview bean is shipped with Servoy, you can just drag it on your form from the palette:

[attachment=0]dbtreeview.png[/attachment]

The width of a node depends on the amount of text that you display.
The height is the same for each node and can be set with the function .setRowHeight(height).
To show a different background color for each node, you can use html in the text dataprovider.

The icons used in the treeview are based on a dataprovider (can be a calculation), so they can be different for each node. Take a look at binding.setImageMediaDataprovider() and binding.setImageURLDataprovider().

Thanks Joas, I’ll see if I can work that out…