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.

style of selected node (treeview)

Thread ID:

Created:

Updated:

Platform:

Replies:

71793 Feb 13,2008 06:32 AM Feb 14,2008 04:46 AM ASP.NET Web Forms (Classic) 1
loading
Tags: Tools
hadhber
Asked On February 13, 2008 06:32 AM

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 04:46 AM

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

.Act_TextCont
{
background-color: red;
font-family: Arial;
font-size: 13px;
padding-left: 5px;
color:White;
height:15;
text-align:center;
}




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

http://websamples.syncfusion.com/samples/Tools.Web/6.1.0.34/71793/main.htm

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

Regards,
Vishnu.




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.

;