Announcement

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

    ListGrid Hilite not working

    smartGWT Nightly Build 2013-05-21
    Browser: Safari 6.0.4 mac
    no server side problem
    no java script error
    log code start and ends without exception or something else

    sample code:

    Code:
    Hilite[] hilites = new Hilite[] {
                new Hilite() {{
                  setFieldNames(Enum.SUBJECT.getParameterName());
                  setTextColor("#FFFFFF");
                  setBackgroundColor("#639966");
                  setCriteria(new Criterion(Enum.SUBJECT.getParameterName(), OperatorId.NOT_NULL));
                  setCssText("color:#3333FF;background-color:#CDEB8B;");
                  setId("1");
                }}
            };
            setHilites(hilites);
            redraw();
    I took the example from showcase and it did not work (the column for subject is not green but the value is not null) Its a string data and tableType. Did i forget something to set?

    Thanks for your help and best regards,
    RBS2002

    #2
    Try providing an AdvancedCriteria instead of a Criterion.

    Double-check that field name is the same in the criteria and in the data.

    Comment


      #3
      thank you - i think a draw before was missing, after i made this manually in constructor before set hilight the highlight was set :)

      Comment

      Working...
      X