Announcement

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

    Style Cells(add Style) Chrome performance Issue

    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?

    #2
    Probably you are testing in GWT Development Mode - see FAQ about GWT Development Mode in Chrome.

    Comment


      #3
      Nope thats not the problem i'm not using the gwt developement mode

      Comment


        #4
        This is really, really trivial code, similar to code you can see in samples that performs very well. Something is wrong with your environment.

        Comment


          #5
          i'll try it on another computer on monday at work

          Comment


            #6
            Hi,

            i tried it on another computer with a fresh installation of the latest chrome - same problem.

            Comment


              #7
              Sorry, code like you've shown simply would not cause a noticeable slowdown. You can review samples that do similar things and see that there is no slowdown.

              Something else that you're doing - something you haven't mentioned - is actually the problem.

              We won't be investigating this further.

              Comment


                #8
                ok...thnx - is there maybe a different method to highlight specific columns ?

                Comment

                Working...
                X