diff --git a/zkwebui/WEB-INF/src/org/adempiere/webui/component/GridPanel.java b/zkwebui/WEB-INF/src/org/adempiere/webui/component/GridPanel.java index 3effc20be7..8d33783dc2 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/component/GridPanel.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/component/GridPanel.java @@ -465,6 +465,13 @@ public class GridPanel extends Borderlayout implements EventListener } } + /** + * scroll grid to the current focus row + */ + public void scrollToCurrentRow() { + onPostSelectedRowChanged(); + } + private void focusToRow(org.zkoss.zul.Row row) { if (renderer.isEditing()) { if (columnOnClick != null && columnOnClick.trim().length() > 0) {