[CLOSED] Templated grid not rendering html tags

  1. #1

    [CLOSED] Templated grid not rendering html tags

    Hi, I have a templated grid that displays data generated by an html editor. The the formated string from the html editor includes tags like <STRONG> , <LI> anong others. None of this is displayed when rendered in a the templated column.

    The html template I am using for the grid is

    <p>{MessageText:ellipsis(100, true)}</p>
    MessageText is the field with the html; formated text. for example
    MessageText="<p>​<strong>This</strong> is a <font color="#ff00ff">test</font></p><ul><li>List 1</li><li>List 2</li></ul>"
    The font displays the color information properly, but the strong and the LI tags are not formated properly just the text .

    Whats the right template to use to renders the html tags properly.

    Regards
    Last edited by Daniil; Sep 18, 2012 at 4:34 AM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi,

    ExtJS uses a reset stylesheet.
    http://forums.ext.net/showthread.php...ll=1#post57861

    Please set this setting for the GridPanel.
    StyleHtmlContent="true"
  3. #3
    Thank you

Similar Threads

  1. Add html content inside ext:panel tags
    By kirkhas in forum 1.x Help
    Replies: 15
    Last Post: Aug 03, 2011, 10:19 PM
  2. Replies: 1
    Last Post: May 28, 2010, 1:13 PM
  3. html tags inside container
    By [WP]joju in forum 1.x Help
    Replies: 4
    Last Post: Nov 20, 2009, 2:39 AM
  4. [CLOSED] tags shown on html propeties
    By pank in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 22, 2009, 12:35 AM
  5. html tags in textfields
    By [WP]joju in forum 1.x Help
    Replies: 0
    Last Post: Apr 16, 2009, 9:46 AM

Posting Permissions