Use Live Data and Paging"

From Documentation
m
Line 1: Line 1:
{{ZKDevelopersGuidePageHeader}}
+
{{ZKDevelopersReferencePageHeader}}
  
 
Sending out a list box with a lot of items to the client is expensive. In addition, the JavaScript engine of the browser is not good for initializing a list box with a lot of items. A better solution is to use the live data, i.e., by assigning a list model to it. Then, the list items are sent to the client only if they become visible.
 
Sending out a list box with a lot of items to the client is expensive. In addition, the JavaScript engine of the browser is not good for initializing a list box with a lot of items. A better solution is to use the live data, i.e., by assigning a list model to it. Then, the list items are sent to the client only if they become visible.
Line 7: Line 7:
 
Refer to the '''List Boxes''' section in the [http://books.zkoss.org/wiki/ZK_Component_Reference ZK Component Reference] chapter for more details.
 
Refer to the '''List Boxes''' section in the [http://books.zkoss.org/wiki/ZK_Component_Reference ZK Component Reference] chapter for more details.
  
 +
=Version History=
  
{{ ZKDevelopersGuidePageFooter}}
+
{| border='1px' | width="100%"
 +
! Version !! Date !! Content
 +
|-
 +
|  
 +
|  
 +
|  
 +
|}
 +
 
 +
{{ ZKDevelopersReferencePageFooter}}

Revision as of 11:34, 17 September 2010

Sending out a list box with a lot of items to the client is expensive. In addition, the JavaScript engine of the browser is not good for initializing a list box with a lot of items. A better solution is to use the live data, i.e., by assigning a list model to it. Then, the list items are sent to the client only if they become visible.

The performance will be improved more if you also use the paging mold.

Refer to the List Boxes section in the ZK Component Reference chapter for more details.

Version History

Version Date Content
     



Last Update : 2010/09/17

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.