Hi,
I've followed the demo here : http://www.smartclient.com/smartgwt/showcase/#featured_grid_cell_widgets
Here is my code :
My problem is instead of displaying the label "test" as expected, smartGWT displays [Object object] instead. I do not understand because it's almost copy paste from the showcase ...
I've followed the demo here : http://www.smartclient.com/smartgwt/showcase/#featured_grid_cell_widgets
Here is my code :
Code:
final ListGrid listGrid = new ListGrid() { @Override protected Canvas createRecordComponent(final ListGridRecord record, Integer colNum) { String fieldName = this.getFieldName(colNum); if ( "remarks".equals(fieldName) ) { HLayout recordCanvas = new HLayout(2); recordCanvas.addMember(new Label("test")); return recordCanvas ; } else { return null; } } }; ListGridField remarks = new ListGridField("remarks","Remarks"); remarks.setFrozen(true); remarks.setAlign(Alignment.LEFT); remarks.setWidth(180);
Comment