summaryrefslogtreecommitdiffstats
path: root/compatibility-server
diff options
context:
space:
mode:
Diffstat (limited to 'compatibility-server')
-rw-r--r--compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java16
1 files changed, 16 insertions, 0 deletions
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 6c811d070e..ce78fa33cf 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
@@ -6733,6 +6733,22 @@ public class Grid extends AbstractComponent
return itemId;
}
+ /**
+ * Refreshes, i.e. causes the client side to re-render the rows with the
+ * given item ids.
+ * <p>
+ * Calling this for a row which is not currently rendered on the client side
+ * has no effect.
+ *
+ * @param itemIds
+ * the item id(s) of the row to refresh.
+ */
+ public void refreshRows(Object... itemIds) {
+ for (Object itemId : itemIds) {
+ datasourceExtension.updateRowData(itemId);
+ }
+ }
+
private static Logger getLogger() {
return Logger.getLogger(Grid.class.getName());
}