Solved TreeView stop or wrap only node text that goes off the page

Posted on 2012-08-30
Last Modified: 2012-09-03

In 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?
Question by:murbro
    LVL 5

    Expert Comment

    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

    Author Comment

    Hi. Thanks. I should have mentioned that I tried that already and it wrapped every node, which made a mess. Thanks
    LVL 5

    Accepted Solution

    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

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

    Author Closing Comment

    Great. Thanks very much

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
    One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on could not pull conte…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video discusses moving either the default database or any database to a new volume.

    732 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now