Nevron Forum

NTreeNode background color

https://www.nevron.com/Forum/Topic5111.aspx

By Jonathan Rowe - Tuesday, April 26, 2011

I would like to color an NTreeNode if the user double clicks it. I set the CommonIndicator property for the node, but the change does not appear in the UI.

NTreeNode node = (NTreeNode)nTree.FocusedItem;
node.CommonIndicator = CommonIndicator.FlagGreen;

This should be very simple. What am I doing wrong?

Jon
By Nevron Support - Tuesday, April 26, 2011

Hello Jon,

In order to display the node indicator you need to set NTreeViewEx.IndicatorStyle property to OnLeft or OnRight too.
By Jonathan Rowe - Tuesday, April 26, 2011

Thanks.