From 306f2935bf269538b730a8fc33433a2d3945cad5 Mon Sep 17 00:00:00 2001 From: elmot Date: Wed, 6 Apr 2016 10:45:12 +0300 Subject: Documentation for container switch limitations (#18323) Change-Id: If6fa13c84c8afb5caaf2d46ac283f704baf88695 --- server/src/com/vaadin/ui/Grid.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/server/src/com/vaadin/ui/Grid.java b/server/src/com/vaadin/ui/Grid.java index 4074672675..036fe8b756 100644 --- a/server/src/com/vaadin/ui/Grid.java +++ b/server/src/com/vaadin/ui/Grid.java @@ -4855,8 +4855,13 @@ public class Grid extends AbstractFocusable implements SelectionNotifier, } /** - * Sets the grid data source. - * + * Sets the grid data source.

+ * + * Note Grid columns are based on properties and try to detect a correct converter for + * the data type. The columns are not reinitialized automatically if the container is changed, and if the same + * properties are present after container change, the columns are reused. + * Properties with same names, but different data types will lead to unpredictable behaviour. + * * @param container * The container data source. Cannot be null. * @throws IllegalArgumentException -- cgit v1.2.3