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

not able to Wrap text in Htmlplaceholder

3 Answers 56 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Manish Agarwal
Top achievements
Rank 1
Manish Agarwal asked on 22 Oct 2009, 02:57 PM
Hi

How to wrap text in HTMLPlaceholder , i don't want that scroll bar to come
i am using "String html = "<div style='overflo:auto'>" + CMSHtmlContent + "</div>";


Please let me know is there any way so that my data should word wrap without scrolling

Please reply ASAP.
Regards
Charu Pahuja

3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 26 Oct 2009, 06:52 AM
Hello Manish Agarwal,

If you remove the overflow style the html content will be rendered by default and it will wrap if you set the Width and Height properties.

Sincerely yours,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Manish Agarwal
Top achievements
Rank 1
answered on 26 Oct 2009, 07:11 AM

Hi

As the text is rendered at run time so i can not assign the width and height of the Control.
it depends on  the area visible for that window. 

Is there any other way to wrap text using RADtmlPlaceHolder.

Please reply ASAP.

Regards
Charu Pahuja
0
Valentin.Stoychev
Telerik team
answered on 26 Oct 2009, 10:27 AM
Hi Manish Agarwal,

Let me explain you how the html placeholder control works.

It is a DIV element positioned above the whole Silverlight application. This DIV elements is populated with the html string you are giving it to it. The only thing that the HtmlPlaceholder do to this DIV element is to position it correctly as part from the Silverlight layout. It will not apply any formatting to the HTML string you are trying to display.

So the answer to your questions is that if the HTML you want to display is wrapping - your text will wrap, else it will not. We are not doing any formatting to the string you are displaying.

Please check this demo to see how the html is displayed - you will see that it will wrap by default.

I hope this is making the things more clear. Let us know if you have any other questions.

Best wishes,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
HTMLPlaceHolder
Asked by
Manish Agarwal
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Manish Agarwal
Top achievements
Rank 1
Share this question
or