Hi,
I'm trying to implement a CellList. It works ok, but when I click an item, it seems like all other items in the list are destroyed, and I'm left with the clicked item in the upper left corner of the screen. Here's my setup:
CellList list = new CellList<Foo>(cell);
list.setPageSize(30);
list.setRowData(mFoos);
list.setWidth("100%");
list.setHeight("100%");
SingleSelectionModel<Foo> selectionModel = new SingleSelectionModel<Foo>();
selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
@Override
public void onSelectionChange(SelectionChangeEvent event) {
}
});
list.setSelectionModel(selectionModel);
VerticalPanel panel = new VerticalPanel();
panel.add(list);
any idea why this is happening? I don't have anything happening in my selectionModel instance, it's empty. So I'm not driving any UI changes as a result of the click. Is it supposed to behave like that?
Thanks