RadHtmlField in DataView webpart

2 posts, 0 answers
  1. David
    David avatar
    2 posts
    Member since:
    Apr 2008

    Posted 28 Jul 2009 Link to this post


    I am using the RadEditor is a Publishing Pages scenario and it workd beutifully. However, when I use a Dataview webpart to trieve field content entered with the "AllowSpecialTags" attribute enabled The page renders the following markup;

    <pre style="display:none" id=RadEditorEncodedTag>PGVtYmVkIHNyYz0iaHR0cDovL3d3dy55b3V0dWJlLmNvbS92L1M4YkxqSU1YM2JFJmFtcDtobD1lbiZhbXA7ZnM9MSZhbXA7IiB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI2MCIgdHlwZT0iYXBwbGljYXRpb24veC1zaG9ja3dhdmUtZmxhc2giIGFsbG93c2NyaXB0YWNjZXNzPSJhbHdheXMiIGFsbG93ZnVsbHNjcmVlbj0idHJ1ZSIgLz4 

    I realize this markeup must be encoded somehow so that SharPoint will not strip out special tags, attributes, and scripts. So is there a way, using a dataview webpart, to display the content entered using the RadEditor control?

    Thank you in advance, any help is appreciated.
  2. Stanimir
    Stanimir avatar
    1654 posts

    Posted 30 Jul 2009 Link to this post

    Hello David,

    When you set the AllowSpecialTags property the RadEditor encodes the content by using these <pre> tags. Afterwards the content is decoded just before to be shown on the page.

    In order to decode the content of the RadEditor you need to use the following static method.

    I hope this helps.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top