Hi,
Version 4.1 Build 2014-04-05.
I have editable ListGrids that we add data to using grid.editNewRecord(Record initialValues).
After upgrading to 4.1 the newly added record disappears immediately after the user has tabbed through all editable fields for the newly added record.
If I add another record, the previously added record is visible again.
Here is a small test case that has this problem:
When I click on Create, I get a new editable record with a correct initial name. When tabbing through the name and phone fields, the entire row disappears.
When I click on Create a second time, the first row becomes visible, while the second row disappears.
I get a number of errors in the SMARTGWT console also:
Regards
Rolf
Version 4.1 Build 2014-04-05.
I have editable ListGrids that we add data to using grid.editNewRecord(Record initialValues).
After upgrading to 4.1 the newly added record disappears immediately after the user has tabbed through all editable fields for the newly added record.
If I add another record, the previously added record is visible again.
Here is a small test case that has this problem:
Code:
final ListGrid grid = new ListGrid(); ListGridField field1 = new ListGridField("name"); ListGridField field2 = new ListGridField("phone"); grid.setFields(field1, field2); grid.setWidth100(); grid.setHeight100(); grid.setCanEdit(true); grid.setCanRemoveRecords(true); grid.setAutoSaveEdits(false); IButton n = new IButton("Create", new ClickHandler() { @Override public void onClick(ClickEvent event) { Record r = new Record(); r.setAttribute("name", "John Doe"); grid.startEditingNew(r); } });
When I click on Create a second time, the first row becomes visible, while the second row disappears.
I get a number of errors in the SMARTGWT console also:
Code:
14:36:00.170:FCS7:WARN:GridBody:isc_ListGrid_0_body:setRowStyle: bad rowNum: -1 14:36:09.866:TMR4:WARN:GridBody:isc_ListGrid_0_body:row heights not yet available; returning all zeroes 14:36:09.868:TMR4:WARN:GridBody:isc_ListGrid_0_body:setRowStyle: bad rowNum: -1 14:36:09.882:TMR6:WARN:GridBody:isc_ListGrid_0_body:row heights not yet available; returning all zeroes 14:36:09.899:TMR8:WARN:GridBody:isc_ListGrid_0_body:row heights not yet available; returning all zeroes 14:36:09.916:TMR0:WARN:GridBody:isc_ListGrid_0_body:row heights not yet available; returning all zeroes
Rolf
Comment