We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

TreeNodeAdv background


Hi,


How to change the highlighted node background to white which should look like unselected node.
I am using treecontrolAdv "BeforeSelect" event to validate the previous selected node before going to make the new node selected. After canceling the event(in case validation fails), it is behaving as expected except hightlighting the node. It is not reverting the hightlighted background of the new node which is actually not selected as I am caneling the event to switch back to the previous node.

Please find the attached image file for the reference.


I am using syncfusion 6.1.0.34 version.



Thanks,
Rajendra prasad Racharla.




BeforeSelect event_fa5e45e0.jpg

1 Reply

AD Administrator Syncfusion Team May 7, 2009 07:13 AM UTC

Hi Rajendra prasad ,

Thank you for using Syncfusion products.

Changing highlighted node background to white

This can be done by setting SelectedNodeBackground property to white in BeforeSelect event as follows.

[C#]

void treeViewAdv1_BeforeSelect(object sender, TreeViewAdvCancelableSelectionEventArgs args)
{
this.treeViewAdv1.SelectedNodeBackground = new Syncfusion.Drawing.BrushInfo(Color.White);
}

Please let me know if this helps you.

Regards,
Jaya

Loader.
Live Chat Icon For mobile
Up arrow icon