?
Solved

ASP.net TreeView stop or wrap only node text that goes off the page

Posted on 2012-08-30
4
Medium Priority
?
684 Views
Last Modified: 2012-09-03
Hi

In ASP.net 4 I have a TreeView with multiple child nodes as shown in the image. Only a few of the last nodes go off the page. Is ot possible to wrap only these nodes?
Image1.jpg
0
Comment
Question by:Murray Brown
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:Gerry Bartley
ID: 38350421
In asp, treeview control has a NodeWrap property. Set to true for wrapping of text. Not sure how much control of the wrapping you will have though
0
 

Author Comment

by:Murray Brown
ID: 38351587
Hi. Thanks. I should have mentioned that I tried that already and it wrapped every node, which made a mess. Thanks
0
 
LVL 5

Accepted Solution

by:
Gerry Bartley earned 2000 total points
ID: 38354653
Try this
Don't know how you're populating your tree, but this should work
Add  html code for page break  <br /> in your datasource column or xml etc for whatever nodes you want to wrap


example
Add a line break wherever you want to wrap a very long title text  <br />   Wraps now
0
 

Author Closing Comment

by:Murray Brown
ID: 38361515
Great. Thanks very much
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question