You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.
Grid<Integer> grid = new Grid();
grid.addColumn((value) -> { return value;}).setHeader("Value").setWidth("50px").setFlexGrow(0);
grid.addColumn(new ComponentRenderer<>(value -> {
Div vl = new Div();
if (value == 5) {
DatePicker datepicker = new DatePicker();
datepicker.setLocale(Locale.GERMANY);
LocalDate date = LocalDate.of(2019, 1, 1);
datepicker.setValue(date);
vl.add(datepicker);
}
return vl;
})).setWidth("150px").setFlexGrow(1).setHeader("Date");
ArrayList<Integer> numbers = new ArrayList();
for (int i = 1; i < 100; i++) {
numbers.add(i);
}
ListDataProvider<Integer> dataProvider = DataProvider.ofCollection(numbers);
grid.setDataProvider(dataProvider);
Interestingly, when the line datepicker.setValue(date); is removed, then the component is rendered. Also, when not rendered in first place, after a bit of scrolling the component gets shown. What's going on here?
Versions are Vaadin 13.0.2 and Chrome 72.0.3626.121
The text was updated successfully, but these errors were encountered:
andreasbean
changed the title
Grid Components not rendered - an example
Grid components not rendered - an example
Mar 26, 2019
Interestingly, when the line
datepicker.setValue(date);
is removed, then the component is rendered. Also, when not rendered in first place, after a bit of scrolling the component gets shown. What's going on here?Versions are Vaadin 13.0.2 and Chrome 72.0.3626.121
The text was updated successfully, but these errors were encountered: