Hi,

Let's assume we have GridInlineEditing with two editable columns and our goal is to edit some cell (let's name it C1) in first column. Use case: 1) Click C1 cell; 2) Enter some text in it; 3) Click another cell (C2) from second column.

Actual result: as soon as C2 is clicked, information entered in C1 disappear.

Expected result: all entered infomation should stay in C1 cell.


Important note is that using tab key everything works fine. This happens in Chrome (version 37), but not in Mozilla v.26 (didn't test other browsers though). I'm using GXT 3.0.1 and Windows 7 OS.


Below is a sample, which reproduces this behavior.



Code:



public class BasicGrid implements IsWidget {
private HorizontalLayoutContainer hlc;
private Grid<NameModel> grid;


@Override
public Widget asWidget() {
if (hlc == null) {
hlc = new HorizontalLayoutContainer();
hlc.add(createGrid());
}
return hlc;
}


public interface GridProperties extends PropertyAccess<NameModel> {
ModelKeyProvider<NameModel> id();
ValueProvider<NameModel, String> name();
ValueProvider<NameModel, String> lastName();
}


public static GridProperties gridProperties = GWT.create(GridProperties.class);


private Grid<NameModel> createGrid() {
ListStore<NameModel> listStore = new ListStore<NameModel>(gridProperties.id());


ColumnConfig<NameModel, String> nameCol = new ColumnConfig<NameModel, String>(gridProperties.name(), 50, "Name");
ColumnConfig<NameModel, String> lastNameCol = new ColumnConfig<NameModel, String>(gridProperties.lastName(), 150, "Last Name");
List<ColumnConfig<NameModel, ?>> columns = new ArrayList<ColumnConfig<NameModel, ?>>();
columns.add(nameCol);
columns.add(lastNameCol);
ColumnModel<NameModel> columnModel = new ColumnModel<NameModel>(columns);


GridView<NameModel> gridView = new GridView<NameModel>();
gridView.setAutoExpandColumn(nameCol);


grid = new Grid<NameModel>(listStore, columnModel, gridView);
grid.setPixelSize(300, 200);


GridEditing<NameModel> editing = new GridInlineEditing<NameModel>(grid);
editing.addEditor(nameCol, new TextField());
editing.addEditor(lastNameCol, new TextField());


ListStore<NameModel> store = grid.getStore();
store.add(new NameModel("Name 1", "Last Name 1"));
store.add(new NameModel("Name 2", "Last Name 2"));
store.add(new NameModel(null, null));

return grid;
}


}

Any help, workarounds, etc. would be greatly appreciated.

Thanks.