Announcement

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

    doctype IE9 grid columns off

    Hi,

    in screenshot:
    showcase sample http://www.smartclient.com/smartgwt/showcase/#grid_appearance_cell_styles
    with IE9 in standards mode.
    Probably the showcase.html doesn't have doctype.
    When you set the doctype in the html, the columns are also off, but from the other side.

    other screenshot: using this sample, you'll see the same with or without doctype set, IE9 in standards mode is off.
    Code:
    VLayout v = new VLayout();
    v.setWidth100();
    v.setOverflow(Overflow.VISIBLE);
    v.setHeight(500);
    
    ListGrid l = new ListGrid();
    l.setBaseStyle("myBoxedGridCell");
    ListGridField f1 = new ListGridField("Field1", "Field1");
    ListGridField f2 = new ListGridField("Field2", "Field2");
    f1.setWidth(50);
    
    l.setFields(f1, f2);
    ArrayList<ListGridRecord> loginData = new ArrayList<ListGridRecord>();
    for (int i = 0; i < 10; i++) {
    	ListGridRecord record = new ListGridRecord();
    
    	record.setAttribute("Field1", "user" + i);
    	record.setAttribute("Field2", "test" + i);
    	
    	loginData.add(record);	
    }
    
    l.setData(loginData.toArray(new ListGridRecord[0]));
    
    v.setMembers(l);

    This was done with SmartGWT Pro 4/04/2012
    Attached Files
Working...
X