summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java b/client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java
index fca1feab25..491aa0d9d2 100644
--- a/client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java
+++ b/client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java
@@ -211,10 +211,9 @@ public class GridConnector extends AbstractListingConnector
Grid<JsonObject> grid = getWidget();
- // Remove default headers when initializing Grid widget
- while (grid.getHeaderRowCount() > 0) {
- grid.removeHeaderRow(0);
- }
+ // Trigger early redraw of both grid static sections.
+ grid.setHeaderVisible(!grid.isHeaderVisible());
+ grid.setFooterVisible(!grid.isFooterVisible());
registerRpc(GridClientRpc.class, new GridClientRpc() {