Hybrid View

  1. #1
    Ext User
    Join Date
    Dec 2008
    Posts
    34
    Vote Rating
    0
    Noggy is on a distinguished road

      0  

    Exclamation Possible Bug on EditorGrid prevents from changing cell background color

    Possible Bug on EditorGrid prevents from changing cell background color


    Hi all !
    I'm still stuck at trying to change a grid cell background color. After my last attemp,
    i'm beginning to be convinced it's a bug on GXT.

    Here's the sample code
    Code:
       List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
      ColumnConfig scheduleName  = new ColumnConfig();;
      
      GridCellRenderer<PortionGridDrawModel> change = new GridCellRenderer<PortionGridDrawModel>() {  
      
      
      public String render(PortionGridDrawModel model,String property, ColumnData config, int rowIndex,
      int colIndex, ListStore<PortionGridDrawModel> store) {
      
            String style = "black";
            String temp = model.get(property);
      
      
      return "<span style='background-color:'"+style+"'>"+temp+"</span>";;  
      
      }  
      };  
      
      
      scheduleName = new ColumnConfig();
            scheduleName.setId("portionName");
            scheduleName.setWidth(150);
            scheduleName.setMenuDisabled(true);
            scheduleName.setResizable(false);
            scheduleName.setRenderer(change);
            configs.add(scheduleName);
      
      ColumnModel cm = new ColumnModel(configs);
      
      
      EditorGrid<PortionGridDrawModel> grid = new EditorGrid<PortionGridDrawModel>(scheduleListStore, cm); 
            grid.setBorders(false);
            grid.setClicksToEdit(ClicksToEdit.TWO);
            grid.disableTextSelection(true);
    GWT version : 1.5.3
    GXT version : 1.2

    TIA,
    Carlos
    Last edited by Noggy; 13 Feb 2009 at 11:43 AM. Reason: forgot some stuff

  2. #2
    Ext User
    Join Date
    Dec 2008
    Posts
    34
    Vote Rating
    0
    Noggy is on a distinguished road

      0  

    Thumbs up


    Issue solved.
    Please correct the online example to include escape characters !!!!

    Inside the render method i had to use instead :

    Code:
    String style = "background-color:red; width:100%;";
    String temp = model.get(property);
    return "<span style=\""+style+"\">"+temp+"</span>";

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi