summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2015-09-08 17:36:57 +0300
committerVaadin Code Review <review@vaadin.com>2015-09-09 07:59:11 +0000
commitbd1932af96273877cb434cbc6037361ff12cafbc (patch)
tree79d8f67f45fd23feef7aae4011142148e0049dec /client
parent53aea4ad61d3713f637c45c530842fca6b7f1d81 (diff)
downloadvaadin-framework-bd1932af96273877cb434cbc6037361ff12cafbc.tar.gz
vaadin-framework-bd1932af96273877cb434cbc6037361ff12cafbc.zip
Fix Editor selection checkbox handling to be more specific (#18818)
Change-Id: Ic33572d3cd9e6117dc133bbfe26bc707c4b84f21
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/widgets/Grid.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java
index 4e5aa869ba..4d1788639c 100644
--- a/client/src/com/vaadin/client/widgets/Grid.java
+++ b/client/src/com/vaadin/client/widgets/Grid.java
@@ -149,6 +149,7 @@ import com.vaadin.client.widget.grid.events.ScrollHandler;
import com.vaadin.client.widget.grid.events.SelectAllEvent;
import com.vaadin.client.widget.grid.events.SelectAllHandler;
import com.vaadin.client.widget.grid.selection.HasSelectionHandlers;
+import com.vaadin.client.widget.grid.selection.MultiSelectionRenderer;
import com.vaadin.client.widget.grid.selection.SelectionEvent;
import com.vaadin.client.widget.grid.selection.SelectionHandler;
import com.vaadin.client.widget.grid.selection.SelectionModel;
@@ -1556,7 +1557,9 @@ public class Grid<T> extends ResizeComposite implements
}
private void updateSelectionCheckboxesAsNeeded(boolean isEnabled) {
- if (grid.getSelectionModel() instanceof Multi) {
+ // FIXME: This is too much guessing. Define a better way to do this.
+ if (grid.selectionColumn != null
+ && grid.selectionColumn.getRenderer() instanceof MultiSelectionRenderer) {
grid.refreshBody();
CheckBox checkBox = (CheckBox) grid.getDefaultHeaderRow()
.getCell(grid.selectionColumn).getWidget();