From c67dc4bb93dcd0a993c6e6ebda8729a607f37946 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 24 Nov 2009 08:33:21 +0000 Subject: [PATCH] https://sourceforge.net/tracker/?func=detail&aid=2902984&group_id=176962&atid=955896 - change grid edit mode to not always on making the UI appear more responsive --- .../354a-trunk/oracle/604_BF2902984_GridPerformance.sql | 8 ++++++++ .../postgresql/604_BF2902984_GridPerformance.sql | 8 ++++++++ .../src/org/adempiere/webui/component/GridPanel.java | 4 ++-- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 migration/354a-trunk/oracle/604_BF2902984_GridPerformance.sql create mode 100644 migration/354a-trunk/postgresql/604_BF2902984_GridPerformance.sql diff --git a/migration/354a-trunk/oracle/604_BF2902984_GridPerformance.sql b/migration/354a-trunk/oracle/604_BF2902984_GridPerformance.sql new file mode 100644 index 0000000000..e012666f6f --- /dev/null +++ b/migration/354a-trunk/oracle/604_BF2902984_GridPerformance.sql @@ -0,0 +1,8 @@ +-- Nov 24, 2009 4:20:31 PM MYT +-- https://sourceforge.net/tracker/?func=detail&aid=2902984&group_id=176962&atid=955896 [Make grid edit mode not always on to make the UI appear more responsive] +UPDATE AD_SysConfig SET Value='N',Updated=TO_DATE('2009-11-24 16:20:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=50019 +; + +COMMIT; + + diff --git a/migration/354a-trunk/postgresql/604_BF2902984_GridPerformance.sql b/migration/354a-trunk/postgresql/604_BF2902984_GridPerformance.sql new file mode 100644 index 0000000000..a06071773f --- /dev/null +++ b/migration/354a-trunk/postgresql/604_BF2902984_GridPerformance.sql @@ -0,0 +1,8 @@ +-- Nov 24, 2009 4:20:31 PM MYT +-- https://sourceforge.net/tracker/?func=detail&aid=2902984&group_id=176962&atid=955896 [Make grid edit mode not always on to make the UI appear more responsive] +UPDATE AD_SysConfig SET Value='N',Updated=TO_TIMESTAMP('2009-11-24 16:20:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=50019 +; + +COMMIT; + + 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 3eb4f27e03..91e3ef1527 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/component/GridPanel.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/component/GridPanel.java @@ -114,8 +114,8 @@ public class GridPanel extends Borderlayout implements EventListener //default paging size pageSize = MSysConfig.getIntValue(PAGE_SIZE_KEY, 100); - //default true for backward compatibility - modeless = MSysConfig.getBooleanValue(MODE_LESS_KEY, true); + //default false for better performance + modeless = MSysConfig.getBooleanValue(MODE_LESS_KEY, false); } /**