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

TreeView SubNode Multiline ASP:net

Hi,

When i expand a subnode if the size of the text is bigger than a value i need show in two lines or more is this posible?

Thanks.


3 Replies

ME Meena Syncfusion Team February 16, 2012 11:23 AM UTC

Hi Ruben,

Thanks for using Syncfusion products.

Your requirement of displaying the child nodes of treeview in two or more lines could be achieved by setting the “white-space” css property as normal for the corresponding css class. Please refer the below code snippet,


[Css]
.tvView .tvTextCont
{
font-size: 17px !important;
white-space : normal !important;
word-spacing:15px;

}


In the above coding we have set the font size of child nodes to larger, white-space property is used to break the line and displays the text in two lines.

We have also created a simple sample with this and it can be downloaded from the below link.

TreeView.zip

Please let us know if you have any other concerns.

Regards,
Meena




RU Ruben February 17, 2012 12:35 PM UTC

Thanks, it´s perfect.



ME Meena Syncfusion Team February 20, 2012 07:25 AM UTC

Hi Ruben

Thanks for the update.

We are glad to know that your requirement has been met. Please let us know if you have any other concerns.

Regards,
Meena



Loader.
Live Chat Icon For mobile
Up arrow icon