Announcement

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

    Problem with Formater

    Hi, i am having a strange problem with the Number format on a TreeGrid. When my screen first loads, the format is not applied, it only gets applied when i edit/update mu value and then its very slow.


    this is my code:

    // formatter
    CellFormatter formatter = new CellFormatter() {

    @Override
    public String format(Object value, ListGridRecord record, int rowNum, int colNum) {

    if (value != null) {
    NumberFormat nf = NumberFormat.getFormat("#,##0.00");
    try {
    return "R" + nf.format(((Number) value).floatValue());
    } catch (Exception e) {
    return value.toString();
    }
    }
    else {
    return null;
    }
    }
    };

    Im using smartGWT 2.5-patch.
    Google Chrome Version 26.0.1410.64 m
Working...
X