This is a migrated thread and some comments may be shown as answers.

Prevent wrap/line break between image and text

3 Answers 108 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Chris Williams
Top achievements
Rank 1
Chris Williams asked on 10 Jan 2008, 02:44 AM
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.

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 10 Jan 2008, 12:34 PM
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
0
Chris Williams
Top achievements
Rank 1
answered on 10 Jan 2008, 05:35 PM
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
0
Alex Gyoshev
Telerik team
answered on 11 Jan 2008, 09:30 AM
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
Tags
TreeView
Asked by
Chris Williams
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Chris Williams
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or