Hello,
I currrently evaluating the 3.1d enterprise edition (20121004) and sometimes get a null record in the callback handler
Is this a valid behaviour or a bug?
This code reporduces the problem:
If you type something in field "f2" and leave focus you get the error.
Btw.: my aim is it, to read some values from the currently edited record, no matter if it is an existing ar a new one.
I currrently evaluating the 3.1d enterprise edition (20121004) and sometimes get a null record in the callback handler
Code:
com.smartgwt.client.widgets.grid.CellEditValueParser::parse
This code reporduces the problem:
Code:
ListGridField f1 = new ListGridField("f1");
ListGridField f2 = new ListGridField("f2");
f2.setEditValueParser(new CellEditValueParser() {
@Override
public Object parse(Object value, ListGridRecord record, int rowNum, int colNum) {
if (record == null) {
SC.warn("Record is null");
}
return value;
}
});
lg.setFields(f1, f2);
lg.setCanEdit(true);
ListGridRecord record = new ListGridRecord();
record.setAttribute("f1", "test");
lg.startEditingNew(record);
lg.draw();
Btw.: my aim is it, to read some values from the currently edited record, no matter if it is an existing ar a new one.
Comment