diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java index 8e73c2a0ae..75517a2a3d 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java @@ -1367,6 +1367,8 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer if (tabPanel != null) { if (!tabPanel.isActivated()) { tabPanel.activate(true); + } else { + tabPanel.getGridView().invalidateGridView(); } if (!tabPanel.isGridView()) { tabPanel.switchRowPresentation(); @@ -1568,7 +1570,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer listPanel.dynamicDisplay(col); if (GridTable.DATA_REFRESH_MESSAGE.equals(e.getAD_Message()) || "Sorted".equals(e.getAD_Message())) { - listPanel.getListbox().invalidate(); + listPanel.invalidateGridView(); } } } diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java index 3a23e76f6a..afc14f20bc 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java @@ -493,8 +493,9 @@ public class CompositeADTabbox extends AbstractADTabbox } hasChanges = true; } - if (hasChanges) - headerTab.getDetailPane().invalidate(); + if (hasChanges) { + headerTab.getDetailPane().getParent().invalidate(); + } } } diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridView.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridView.java index acf10f5b77..44ab211716 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridView.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridView.java @@ -799,11 +799,7 @@ public class GridView extends Vlayout implements EventListener, IdSpace, listModel.setPage(pgNo); onSelectedRowChange(0); gridTab.clearSelection(); - Center center = findCenter(this); - if (center != null) - center.invalidate(); - else - this.invalidate(); + invalidateGridView(); } } else if (event.getTarget() == selectAll) @@ -1220,6 +1216,13 @@ public class GridView extends Vlayout implements EventListener, IdSpace, refresh(gridTab); scrollToCurrentRow(); + invalidateGridView(); + } + + /** + * redraw grid view + */ + public void invalidateGridView() { Center center = findCenter(this); if (center != null) center.invalidate();