Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid does not display certain text values

    To demonstrate this issue go to http://www.smartclient.com/smartgwt/showcase/#grid_editing_row

    Enter editing mode of a text field and enter the value <href> and click enter. The field displays no text.

    Enter editing mode of a text field and enter the value "<href>" and click enter. The field displays "".

    Is there a way to preclude this from occurring?

    #2
    By default HTML data in a grid will render out as HTML (so you could have a record with a field value of "This is <b>Bold!</b>" and the formatting would show up).
    To suppress this you can set listGridField.escapeHTML on the field.
    (Or of course your data could contain escaped HTML with &lt; and &gt; character code values)
    Last edited by Isomorphic; 19 Jul 2012, 09:13. Reason: clarity

    Comment

    Working...
    X