From 98be8f19d046f8f0fd7fe5a753bff2c67efed9fd Mon Sep 17 00:00:00 2001 From: Tatu Lund Date: Tue, 27 Mar 2018 14:53:15 +0300 Subject: Add row index to ItemClickEvent in Grid (#10754) --- .../src/main/java/com/vaadin/client/connectors/grid/GridConnector.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client') 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 b9521d06f5..77bcdf0d97 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 @@ -108,9 +108,10 @@ public class GridConnector extends AbstractListingConnector NativeEvent mouseEvent) { String rowKey = getRowKey((JsonObject) cell.getRow()); String columnId = columnToIdMap.get(cell.getColumn()); + int rowIndex = cell.getRowIndex(); getRpcProxy(GridServerRpc.class).itemClick(rowKey, columnId, MouseEventDetailsBuilder - .buildMouseEventDetails(mouseEvent)); + .buildMouseEventDetails(mouseEvent), rowIndex); } } -- cgit v1.2.3