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

Rad Window Autosize wraps text

2 Answers 47 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Fred Wesson
Top achievements
Rank 1
Fred Wesson asked on 25 May 2010, 03:19 PM
I am trying to use a RadWindow as a replacement for radalert.  I have created a RadWindow and put a literal control on it.  I set the literal's text property to a string of HTML amounting to a message.  I have the RadWindow set to Autosize.  When the window is displayed, the width is set so that the text message line wraps after every word.  Is there a way to have the RadWindow width set so that the text only wraps when a real line break (<br/>) is detected.  The radalert works this way, so it seems that it should be possible.

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Fiko
Telerik team
answered on 28 May 2010, 11:55 AM
Hello Fred,

RadWndow control does not detect <br> elements in text. When the control's content is loaded it checks the size of the content and then resize itself accordingly. In your case I recommend you to wrap the text in a div element and add a white-space:nowrap CSS property:
<div style="white-space:nowrap">
    TTTTTTTTTTTTTTTTTTTTTTTT TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT TTTTTTTTTTTTTTTTTT<br />
    WWWWWWWWWWWWWWWWWWWWWWWWWW WWWWWWWWWWWWWWWWWWWWWWWWWW WWWWWWWWWWWWWW WWWWWWWWWWWWWWWWWWWWWWWWWW<br />
</div>

In addition, I recommend you to add this CSS to the head of the content page (which is opened in RadWindow):
<style type="text/css">
    html, body, form
    {
        margin: 0px;
        padding: 0px;
        height: 100%;
    }
</style>


I hope this helps.

Kind regards,
Fiko
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Fred Wesson
Top achievements
Rank 1
answered on 28 May 2010, 02:54 PM
The nowrap did it.  Thank you...
Tags
Ajax
Asked by
Fred Wesson
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Fred Wesson
Top achievements
Rank 1
Share this question
or