not able to Wrap text in Htmlplaceholder

4 posts, 0 answers
  1. Manish Agarwal
    Manish Agarwal avatar
    44 posts
    Member since:
    Sep 2009

    Posted 22 Oct 2009 Link to this post

    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
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 26 Oct 2009 Link to this post

    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.
  3. DevCraft banner
  4. Manish Agarwal
    Manish Agarwal avatar
    44 posts
    Member since:
    Sep 2009

    Posted 26 Oct 2009 Link to this post


    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
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 26 Oct 2009 Link to this post

    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.
Back to Top