style of selected node (treeview)

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


1 Reply

VK Vishnu Kumar Syncfusion Team 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

.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.




Loader.
Up arrow icon