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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TreeView SubNode Multiline ASP:net

Thread ID:

Created:

Updated:

Platform:

Replies:

102627 Feb 15,2012 06:30 PM UTC Feb 20,2012 07:25 AM UTC General Discussion 3
loading
Tags: General Discussion
Ruben
Asked On February 15, 2012 06:30 PM UTC

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.


Meena [Syncfusion]
Replied On 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



Ruben
Replied On February 17, 2012 12:35 PM UTC

Thanks, it´s perfect.


Meena [Syncfusion]
Replied On 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



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.

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

;