Hello,
I currently evaluating the 4.0-p20130904 and got the following problem:
If a ListGrid contains a ListGridField which renders RecordComponents, this RecordComponent is not drawn for new records.
Here is a short example to reproduce the behaviour:
I currently evaluating the 4.0-p20130904 and got the following problem:
If a ListGrid contains a ListGridField which renders RecordComponents, this RecordComponent is not drawn for new records.
Here is a short example to reproduce the behaviour:
Code:
public void onModuleLoad() {
final ListGrid lg = new ListGrid(){
@Override
protected Canvas createRecordComponent(ListGridRecord record, Integer colNum) {
if (colNum == 1){
ImgButton btn = new ImgButton();
btn.setHeight(16);
btn.setWidth(16);
return btn;
}
return null;
}
};
ListGridField f1 = new ListGridField("f1");
ListGridField f2 = new ListGridField("actions");
f2.setCanEdit(false);
lg.setFields(f1, f2);
lg.setShowRecordComponents(true);
lg.setShowRecordComponentsByCell(true);
lg.setCanEdit(true);
lg.addData(new Record());
lg.startEditingNew();
lg.draw();
}