diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADSortTab.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADSortTab.java index 6475d2c5c0..c2a5514fec 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADSortTab.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADSortTab.java @@ -93,6 +93,13 @@ public class ADSortTab extends Panel implements IADTabpanel m_AD_Table_ID = gridTab.getAD_Table_ID(); ZKUpdateUtil.setVflex(this, "true"); + + addEventListener(ON_ACTIVATE_EVENT, new EventListener() { + @Override + public void onEvent(Event event) throws Exception { + removeAttribute(ATTR_ON_ACTIVATE_POSTED); + } + }); } // ADSortTab /** Logger */ @@ -357,13 +364,6 @@ public class ADSortTab extends Panel implements IADTabpanel ZKUpdateUtil.setVflex(yesList, true); ZKUpdateUtil.setHflex(yesList, "1"); hlayout.appendChild(yesList); - - addEventListener(ON_ACTIVATE_EVENT, new EventListener() { - @Override - public void onEvent(Event event) throws Exception { - removeAttribute(ATTR_ON_ACTIVATE_POSTED); - } - }); } // Init /* (non-Javadoc) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java index 8fd5dbffdb..7468dbdb79 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java @@ -1769,6 +1769,10 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements { sortColumn.setSortDirection("natural"); } + if (gridTab.isSortTab()) { // refresh is not refreshing sort tabs + IADTabpanel tabPanel = adTabbox.getSelectedTabpanel(); + tabPanel.query(false, 0, 0); + } } private Column findCurrentSortColumn() {