Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 week ago
Grid performance
Hi
While trying to render a 150 x 100 Grid of strings in Firefox the browser presents his "Unresponsive Script Warning". Is this simple too much Data for a Grid or is there a bug in my code?
final int COLUMNS = 150;
final int ROWS = 100;
Grid grid = new Grid();
grid.setWidth("100%");
for (int i = 0; i < COLUMNS; i++) {
grid.addColumn("Column " + (i + 1));
}
for (int i = 0; i < ROWS; i++) {
ArrayList<String> list = new ArrayList<>(COLUMNS);
for (int j = 0; j < COLUMNS; j++) {
list.add("Row " + (i + 1) + " Column " + (j + 1));
}
grid.addRow(list.toArray());
}
setContent(grid);
Last updated on
What I know lot of columns still cause some issues in Grid.
Tickets what I've found
https://dev.vaadin.com/ticket/18439
https://dev.vaadin.com/ticket/19756
Last updated on
Yes, Grid is by design not optimized for "spreadsheet-like" use. That's what https://vaadin.com/spreadsheet is for.
Last updated on
You cannot reply to this thread.