0

Lazy loading for Listbox

asked 2011-11-08 20:47:32 +0800

zknewbie1 gravatar image zknewbie1
370 4

Hi, is it possible to delay the loading of listitems into the listbox component until the users click on the down arrow of the listbox? (for the example below, I want to load car, taxi, bus, and train only after the user has clicked on the down arrow of the list box)? Could you provide code sample with your solution? Many Thanks..

<zk>     
  <listbox mold="select" rows="1">        
       <listitem label="Car"/>         
       <listitem label="Taxi"/>         
       <listitem label="Bus" selected="true"/>        
       <listitem label="Train"/>     
  </listbox> 
</zk>

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2011-11-09 20:27:44 +0800

zknewbie1 gravatar image zknewbie1
370 4

push..

link publish delete flag offensive edit

answered 2011-11-10 09:37:58 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

The select mold is consisted of html select tag, so it is hard to load on demand.

link publish delete flag offensive edit

answered 2011-11-10 13:56:43 +0800

zknewbie1 gravatar image zknewbie1
370 4

Ok, thanks Jumperchen. How about Lazy loading for Tabbox? Is it possible to only load the content of the 1st Tab, and then load the content for the 2nd Tab ONLY after the user has clicked on the 2nd Tab? Could you provide some simple code to do that? Thanks much..

<zk>
  <tabbox width="400px">         
    <tabs>             
	  <tab label="Tab 1" />             
	  <tab label="Tab 2" />         
	</tabs>         
	<tabpanels>             
	  <tabpanel>This is panel 1</tabpanel>
	  <tabpanel>This is panel 2</tabpanel>
    </tabpanels>     
  </tabbox> 
</zk>

link publish delete flag offensive edit

answered 2011-11-10 14:03:02 +0800

mbarbieri gravatar image mbarbieri
93 1
www.ste-energy.com

Take a look at fullfill attribute

link publish delete flag offensive edit

answered 2011-11-10 14:12:43 +0800

zknewbie1 gravatar image zknewbie1
370 4

Awesome! Thanks Mbarbieri...

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-11-08 20:47:32 +0800

Seen: 309 times

Last updated: Nov 10 '11

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