summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2016-10-15 23:02:15 +0300
committerArtur Signell <artur@vaadin.com>2016-10-18 05:15:30 +0000
commit04650c56543a446008b8e379a56576472b8e093e (patch)
treeb8b7dc44c8659561f99ede9e86bf8df3b1ecf131 /server
parent643365176aeae6edd28fcdd9f98602dec7a80e77 (diff)
downloadvaadin-framework-04650c56543a446008b8e379a56576472b8e093e.tar.gz
vaadin-framework-04650c56543a446008b8e379a56576472b8e093e.zip
Update client side selection state when changing selection model (#20370)
Change-Id: I7fe8c160405a69140cac511c744d89a62c401cca
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/ui/Grid.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Grid.java b/server/src/main/java/com/vaadin/ui/Grid.java
index 3f61dcd88f..3bce7fcc39 100644
--- a/server/src/main/java/com/vaadin/ui/Grid.java
+++ b/server/src/main/java/com/vaadin/ui/Grid.java
@@ -5595,6 +5595,10 @@ public class Grid extends AbstractFocusable implements SelectionNotifier,
if (!SharedUtil.equals(oldSelection, newSelection)) {
fireSelectionEvent(oldSelection, newSelection);
}
+
+ // selection is included in the row data, so the client needs to be
+ // updated
+ datasourceExtension.refreshCache();
}
}