diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-07-01 14:27:30 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-07-02 12:19:42 +0000 |
commit | 22ea8caf78f6690ed4414bd0085af7c5bfc21e46 (patch) | |
tree | e3db86722c01d1eac9abac8331bb54504775636a /server/src/com/vaadin/data/RpcDataProviderExtension.java | |
parent | bab0975e1288af9079780a030c439b0c2be832ac (diff) | |
download | vaadin-framework-22ea8caf78f6690ed4414bd0085af7c5bfc21e46.tar.gz vaadin-framework-22ea8caf78f6690ed4414bd0085af7c5bfc21e46.zip |
Fix Grid details on sort to display them on correct rows (#18224)
Due to the nature of Container this is only achieved by removing any
existing details and reopening those after the sort is done.
Change-Id: Ic42186ed85981d5dad4ff0948aa22f7a0404480d
Diffstat (limited to 'server/src/com/vaadin/data/RpcDataProviderExtension.java')
-rw-r--r-- | server/src/com/vaadin/data/RpcDataProviderExtension.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/src/com/vaadin/data/RpcDataProviderExtension.java b/server/src/com/vaadin/data/RpcDataProviderExtension.java index 9d18736ba8..d291d509b2 100644 --- a/server/src/com/vaadin/data/RpcDataProviderExtension.java +++ b/server/src/com/vaadin/data/RpcDataProviderExtension.java @@ -927,6 +927,14 @@ public class RpcDataProviderExtension extends AbstractExtension { listener.removeListener(); } + // Wipe clean all details. + HashSet<Object> detailItemIds = new HashSet<Object>( + detailComponentManager.visibleDetailsComponents + .keySet()); + for (Object itemId : detailItemIds) { + detailComponentManager.destroyDetails(itemId); + } + listeners.clear(); activeRowHandler.activeRange = Range.withLength(0, 0); |