Announcement

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

    CSS Style Mappings in Smart GWT 5.1 using IE 11

    I am running Smart GWT 5.1 evaluation edition using GWT 2.7 in the IE 11 browser. I am working with a codebase that last worked with SmartGWT 3.1.
    A TreeGrid is being displayed for which getCellCSSText() is overriden. When adding a node to the grid, an attribute is set that contains a mapping of style attributes (e.g. font family, font size) to values. In getCellCSSText() the map is accessed from the ListGridRecordin order to build valid CSS text.

    For purposes of this test, getCellCSSText() is hardcoded to return "font-family:Arial;font-size:72px;"

    What I observe is that if I don't set the attribute with the style map, the grid is displayed properly using the hard coded CSS string. But if the style map is set, then the cell appears blank.

    What could I be doing wrong here?

    #2
    This is way too little information to be able to help - for starters we would recommend using the tools built into the browser (on Windows, just press f12) to look at the cell in question and see whether there is a data value there at all (which might be the problem) or whether it has styling that will obviously make it invisible.

    Comment

    Working...
    X