Hi,
I would like to show different images depending on if a node is activated or not, like in the windows explorer. There you can see a folder that is open (active nodee) or closed (inactive node). What would the best practice?
Regards, Stefan.
Hi Stefan,
Did you want to change the expansion indicators or just supply images to the nodes?
For the former, you would need a DrawFilter. For the latter, it's much easier.
this.ultraTree1.Override.NodeAppearance.Image = collapseNodeImage;this.ultraTree1.Override.ExpandedNodeAppearance.Image = expandedNodeImage;
I'm sure there are samples of this included with the NetAdvantage SDK.
Thank you Mike. I want these images to change when a node is activated, not when it is expanded or collapsed. Exactly like in the windows explorer: if you click a folder in the tree it is not expanded but activated and the icon changes from cfold.ico to ofold.ico.
Kind regards, Stefan.
Ah, I see it now. I need ActiveNodeAppearance.
Thanks all, Stefan.