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
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
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.