Announcement

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

    ListGridField.setBaseStyle() copies style attributes from CSS inline in IE9?

    I use ListGridField.setBaseStyle(<my-css-class>) to style a ListGridFieldType.LINK field. I noticed that with IE9 all style instructions seem to have been copied inline to the <td>-element. Does SmartGWT do that? Don't think the IE dev tools fool me...
    This becomes a problem with instructions like background: url(../images/external_link.png). When the stuff is inline the relative URL reference needs to be different -> image is not displayed.

    Any clues?

    #2
    See the docs for fastCellUpdates - this is on by default and it's inlining the style as you've noticed. As the docs point out, this will change relative image paths.

    Comment


      #3
      Originally posted by Isomorphic
      See the docs for fastCellUpdates - this is on by default and it's inlining the style as you've noticed. As the docs point out, this will change relative image paths.
      Thanks for quick reply and that pointer - problem solved. However, it'd be nice if
      a) the docs clearly stated that the style will be inlined
      b) the docs for ListGridField.setBaseStyle() had a @see pointer to ListGrid.setFastCellUpdates()

      Comment

      Working...
      X