Prevent wrap/line break between image and text

4 posts, 0 answers
  1. Chris Williams
    Chris Williams avatar
    63 posts
    Member since:
    Oct 2004

    Posted 09 Jan 2008 Link to this post

    I use a treeview inside of a RadPane.  Each of the nodes has an image and some of the node text entries are quite long.

    I don't care about wrapping the node text at all... what I'm trying to do is prevent the node display from breaking between the image and the node's text when it is wider than my RadPane.

    Currently, when the width of the image plus the node text is wider than the RadPane, I get a display that uses two lines, like this:

    <image>
    the nodes' text entry that can go on and on because it is so wide.

    I'd prefer to only use one line and prevent the break between the image and it's text.

    Thanks for any assistance.

    Chris

    p.s., I can't use a NodeTemplate, because I build the RadTree in codebehind.
  2. Nikolay
    Admin
    Nikolay avatar
    3997 posts

    Posted 10 Jan 2008 Link to this post

    Hello Chris Williams,

    Attached, please find the latest Web.UI build. The problem should be gone after applying this build. Please download the files and give them a go.

    Hope this helps.

    Regards,
    Nick
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chris Williams
    Chris Williams avatar
    63 posts
    Member since:
    Oct 2004

    Posted 10 Jan 2008 Link to this post

    Thanks Nick.

    The hotfix does indeed solve the problem.  But one other issue is that the hotfix doesn't seem to have the same support for embedded skins as the shipping Prometheus version.

    I'm using the Office2007 skin, and in the hotfix that you sent, the tree nodes (which all are clickable using NavigateUrl) are shown using the default link color for the page, rather than the node text color specified by the skin.

    Chris
  5. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 11 Jan 2008 Link to this post

    Hi Chris Williams,

    Thank you for your note. Unfortunately, we could not reproduce the problem in any of our local tests.

    Nevertheless, such behavior could be caused by a link style rule with higher CSS specificity that overrides the RadTreeView's skin style. You could explicitly set the styles on the links within the tree using these lines of CSS :

    .radtreeview a.rtIn 
        font:11px tahoma,verdana,sans-serif !important
        color:#000 !important

    Please let us know whether this solution solves the problem.

    Greetings,

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top