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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

style of selected node (treeview)

Thread ID:





71793 Feb 13,2008 11:32 AM UTC Feb 14,2008 09:46 AM UTC ASP.NET Web Forms (Classic) 1
Tags: Tools
Asked On February 13, 2008 11:32 AM UTC

In the treeview : I will change the background color and font style of a selected node. Please, How I do?

Vishnu Kumar [Syncfusion]
Replied On February 14, 2008 09:46 AM UTC

Hi Hadhber,

Thank you for your patience.

Issue:I will change the background color and font style of a selected node

You can change the selected node background color and font style through the style sheet of the treeview. The following code snippet is used to achieve this behavior:

CSS/TreeStyle.css style sheet

background-color: red;
font-family: Arial;
font-size: 13px;
padding-left: 5px;

Please refer the sample in the below link which illustrates the above:


Please try running the above sample and let me know if this helps.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon