Announcement

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

    Smart GWT ListGridField Bool type only shows checkbox when editing. Dev mode only

    Expected Behavior: list grid should show a check box in every row when running in gwt development mode from eclipse

    Actual Behavior: list grid only shows checkbox in row being edited when running in gwt development mode from eclipse

    Version Information
    version from log console: SmartClient Version: v9.1p_2015-08-10/Enterprise Deployment (built 2015-08-10)

    from pom file:
    <dependency>
    <groupId>com.google.gwt</groupId>
    <artifactId>gwt-user</artifactId>
    <version>2.5.1</version>
    <scope>provided</scope>
    </dependency>
    <dependency>
    <groupId>com.smartgwt</groupId>
    <artifactId>smartgwt</artifactId>
    <version>4.1p_2015-08-10</version>
    <scope>compile</scope>
    </dependency>

    NOTE: other com.smartgwt and com.isomorphic dependencies all have the same version number

    IE version 11.0.9600.18097IS

    Server-side Information
    client-side problem only

    Standalone test case:
    Code:
    public class NoCheckbox implements EntryPoint
    {
        public void onModuleLoad()
        {
            ListGrid grid = new ListGrid();
            grid.setWidth(500);
            grid.setHeight(200);
            
            // ------ build fields ----------------------
            ListGridField[] fields = new ListGridField[2];
    
            fields[0] = new ListGridField("check me");
            fields[0].setType(ListGridFieldType.BOOLEAN);
            fields[0].setCanEdit(true);
            
            fields[1] = new ListGridField("name");
            fields[1].setType(ListGridFieldType.TEXT);
            fields[1].setCanEdit(true);
            
            grid.setFields(fields);
            
            // ------ build data ------------------------
            Record[] data = new Record[3];
            data[0] = record("Alice");
            data[1] = record("Bob");
            data[2] = record("Cheryl");
    
            grid.setData(data);
            
            // ------- render grid ----------------------
            grid.draw();
        }
    
        private Record record(String name)
        {
            Record record = new Record();
            record.setAttribute("name", name);
            return record;
        }
    }

    #2
    We aren't seeing this problem in Showcase samples that have boolean fields.

    It looks like you have an invalid field name "check me" - spaces are not allowed.

    Aside from that, this is potentially skin-specific - see listGrid.boolean(True|False|Partial)Image.

    Comment


      #3
      Ok. I fixed the "check me" field name to be "checkMe". I am still seeing the same issue. I agree that this problem does not show up in showcase samples. It also does not show up in my own production environment. It only shows up when running in gwt development mode.

      Comment


        #4
        Again, it could be skin-specific - are you running a stock skin, or a customized one? If you can get this happen with a stock skin, tell us which one.

        Also, you might be double-including skins (as covered in the QuickStart Guide under the instructions for correctly switching skin). This would result in some telltale signs like two load_skin.js files being loaded by the browser, as well as warnings in the Developer Console.

        Comment

        Working...
        X