IDEMPIERE-231 Zk6: Improve the tablet experience. Use fixed paging size ( 20 ) for better performance.

This commit is contained in:
Heng Sin Low 2012-04-26 23:15:15 +08:00
parent fadd9c9b83
commit d1f5d4e3e9
1 changed files with 9 additions and 1 deletions

View File

@ -121,7 +121,15 @@ public class GridPanel extends Borderlayout implements EventListener<Event>
this.appendChild(south); this.appendChild(south);
//default paging size //default paging size
if (AEnv.isTablet())
{
//anything more than 20 is very slow on a tablet
pageSize = 20;
}
else
{
pageSize = MSysConfig.getIntValue(PAGE_SIZE_KEY, 100); pageSize = MSysConfig.getIntValue(PAGE_SIZE_KEY, 100);
}
//default true for better UI experience //default true for better UI experience
modeless = MSysConfig.getBooleanValue(MODE_LESS_KEY, true); modeless = MSysConfig.getBooleanValue(MODE_LESS_KEY, true);