summaryrefslogtreecommitdiffstats
path: root/compatibility-server
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2016-10-15 23:02:15 +0300
committerPekka Hyvönen <pekka@vaadin.com>2016-12-09 09:39:00 +0200
commita30c614552d22f1b5817e0c2757fa05ab0df8736 (patch)
tree9b5b51c76c66a5e6593c6bd85ce0d33d392a0864 /compatibility-server
parent22c372b7a5cc6540d45b9add88d447ff52eab62d (diff)
downloadvaadin-framework-a30c614552d22f1b5817e0c2757fa05ab0df8736.tar.gz
vaadin-framework-a30c614552d22f1b5817e0c2757fa05ab0df8736.zip
Update client side selection state when changing selection model (#20370)
Change-Id: I7fe8c160405a69140cac511c744d89a62c401cca
Diffstat (limited to 'compatibility-server')
-rw-r--r--compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java
index ef35808f99..f5399f60ce 100644
--- a/compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java
+++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java
@@ -5656,6 +5656,10 @@ public class Grid extends AbstractComponent
if (!SharedUtil.equals(oldSelection, newSelection)) {
fireSelectionEvent(oldSelection, newSelection);
}
+
+ // selection is included in the row data, so the client needs to be
+ // updated
+ datasourceExtension.refreshCache();
}
}