diff --git a/src/main/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGrid.java b/src/main/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGrid.java index 79832fb..1f94374 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGrid.java +++ b/src/main/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGrid.java @@ -270,7 +270,11 @@ public void addRightGridClassName(String classname) { public void removeRightGridClassName(String classname) { getRightGrid().removeClassName(classname); } - + + public void clearAll() { + updateSelection(new HashSet<>(), new HashSet<>(right.getItems())); + } + private void setDataProvider(ListDataProvider dataProvider) { leftGridDataProvider = dataProvider; getLeftGrid().setDataProvider(dataProvider);