Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Style Cells(add Style) Chrome performance Issue

$
0
0
1. Version smartgwt-4.1p LGPL
also tried latest 5.0d from the nightly builds 2014-04-27

2. Browsers involved: Tested on Chrome 34.0.1847.131 m
and FireFox 24.0


First of all the Problem is Client side only - i implemented some code which is almost like the example in the SmartGWT Showcase Style Cells (add style)

I have a mix of two tables and i wanna point out fields that are used from the second one, so implemented an aditional field and want that to have a different color.

Code:

        @Override 
    protected String getCellCSSText(ListGridRecord record, int rowNum, int colNum) { 
                if (getFieldName(colNum).equalsIgnoreCase("isplan")) { 
            if (record.getAttributeAsString("isplan").equalsIgnoreCase("true")||record.getAttributeAsString("Isplan").equalsIgnoreCase("true")) { 
                return "color:#d64949;"; 
            } else { 
                return super.getCellCSSText(record, rowNum, colNum); 
            } 
        } else { 
            return super.getCellCSSText(record, rowNum, colNum); 
        } 
    }

The implementation works - but in Chrome if i'm trying to hover or select the fields the performance is totally messed up.
If i'm opening this in Firefox everything works fine.
is there any kind of workaround for this? - the showcase also works without any performance problems in chrome?

Viewing all articles
Browse latest Browse all 4756

Trending Articles