I have a tabsheet with 2 tabs, the first is empty, the second is a grid, if I click on the grid, the editor opens correctly, but if I have the editor open and I pulse the first tab, when I return to the grid I can not open the editor by clicking, until the screen refreshes.
PD:
If the grid is setBuffered(false) and the grid has a validation error, the editor is also
locked when returning
is it a bug ???
any idea?
Thank you
Grid grid= new Grid<>(Clientes.class);
grid.removeAllColumns();
grid.getEditor().setEnabled(true);
grid.getEditor().setBuffered(true);
Binder binder = grid.getEditor().getBinder();
Binding<Clientes, String> bind = binder.forField(new TextField()).bind(Clientes::getNombre,Clientes::setNombre);
grid.addColumn(e-> e.getNombre()).setCaption(“Nombre”).setEditorBinding(bind).setWidth(200);
List lista=new ArrayList<>();
for(int i=0;i<10;i++){
Clientes cli= new Clientes();
cli.setNombre("nombre "+i);
lista.add(cli);
}
grid.setItems(lista);
VerticalLayout tab1 = new VerticalLayout();
tab1.setCaption(“tab1”);
VerticalLayout tab2 = new VerticalLayout();
tab2.setCaption(“tab1”);
tab2.addComponent(grid);
TabSheet tabSheet= new TabSheet(tab1,tab2);
tabSheet.setSizeFull();
addComponent(tabSheet);