TreeViewAdv items style design

Hello,

I can't seem to be able to change style properties like foreground and background of inner TreeViewItemAdv inside the TreeViewAdv.

AllowMultiSelect="False" AllowDragDrop="True" ShowRootLines="True" AnimationType="Slide">



I'm adding items problematically:

node = new TreeViewItemAdv();
node.Header = "header";
node.Tag = "tagid";
node.Foreground = Brushes.DarkGreen;
node.IsExpanded = true;
treeTech.Items.Add(node);

only the root level item style is editable - lower levels ignore the style change.




1 Reply

KL Karthikeyan L Syncfusion Team October 21, 2011 11:30 AM UTC

Hi Assaf,

By setting Foreground for TreeViewAdv will apply Foreground automatically for its sub nodes.

We have attached a simple sample for your reference,

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=TreeViewDemo880590848.zip

Let us know if you have any other queries.

Thanks,
Karthikeyan



Loader.
Up arrow icon