0

ListBox - ROD

asked 2011-06-15 07:51:13 +0800

jlaurent gravatar image jlaurent
24

Hello!

I have 15 000 entries on my Listbox. I load with ROD and I have set the attribute rows="30" but 100 entries are loaded on the browser (there are 100 tags htm <TR> and 30 tags are loaded with the content.

Can I change the number of pre-load rows (not 100 but 50 entries for example)?

Thanks!

delete flag offensive retag edit

11 Replies

Sort by » oldest newest

answered 2011-06-16 05:28:46 +0800

cvarona gravatar image cvarona
554 1 6

Hi, jl

have you tried <listbox preloadSize="30"... /> ?

With kind regards

César VArona

link publish delete flag offensive edit

answered 2011-06-16 07:05:04 +0800

jlaurent gravatar image jlaurent
24

Thanks for your answer, but I tried this parameter and it was not a success.
Maybe, it's a paging parameter and it work only on paging mode.
(We have a constraint: we don't use paging on the listbox)

Best regards,
Jimmy LAURENT

link publish delete flag offensive edit

answered 2011-06-16 07:23:53 +0800

cvarona gravatar image cvarona
554 1 6

According to the java doc:

It is used only if live data (setModel(ListModel) and not paging (getPagingChild().

With kind regards

César Varona

link publish delete flag offensive edit

answered 2011-07-11 06:02:57 +0800

samchuang gravatar image samchuang
4084 4

Hi

use org.zkoss.zul.listbox.initRodSize

link publish delete flag offensive edit

answered 2011-07-11 08:33:32 +0800

jlaurent gravatar image jlaurent
24

Thanks Samchuang!

It's works on I.E. 7 and it's more quick.

Best regards,

link publish delete flag offensive edit

answered 2011-07-11 12:50:25 +0800

zippy gravatar image zippy
504 2

mmmm

[default: 100]
[inherit: true][6]
[since 5.0.8]


where download 5.0.8??

link publish delete flag offensive edit

answered 2011-07-11 13:37:41 +0800

TonyQ gravatar image TonyQ
642
https://www.masterbranch....

ZK 5.0.8 is not released yet,
currently you could use it on the latest freshly version.

link publish delete flag offensive edit

answered 2011-07-11 14:58:01 +0800

zippy gravatar image zippy
504 2

mmm thanks, i tried in a grid but the preload row is 100

link publish delete flag offensive edit

answered 2011-07-11 20:23:55 +0800

samchuang gravatar image samchuang
4084 4

I test grid with org.zkoss.zul.grid.initRodSize. it works

link publish delete flag offensive edit

answered 2011-09-14 15:53:21 +0800

zippy gravatar image zippy
504 2

up!!

hi,

<library-property>
	<name>org.zkoss.zul.grid.initRodSize</name>
	<value>15</value>
</library-property>

i use this code and the first time zk render 15 rows but when i scroll the page zk render 70 rows.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-06-15 07:51:13 +0800

Seen: 771 times

Last updated: Sep 14 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More