From a30c614552d22f1b5817e0c2757fa05ab0df8736 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Sat, 15 Oct 2016 23:02:15 +0300 Subject: Update client side selection state when changing selection model (#20370) Change-Id: I7fe8c160405a69140cac511c744d89a62c401cca --- compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compatibility-server/src') 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(); } } -- cgit v1.2.3