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.
Unfortunately, activation email could not send to your email. Please try again.

TreeNodeAdv background

Thread ID:

Created:

Updated:

Platform:

Replies:

81001 May 6,2009 07:28 PM May 7,2009 03:13 AM Windows Forms 1
loading
Tags: Tools
Administrator [Syncfusion]
Asked On May 6, 2009 07:28 PM


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

Administrator [Syncfusion]
Replied On May 7, 2009 03:13 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;