-
FEATURED COMPONENTS
First time here? Check out the FAQ!
<listbox id="lbSnList" rows="10" fixedLayout="false" width="100%" model="@{uploadSnVo}" >
<listitem self="@{each=SN}" style="@{SN.BACKGROUND}">
<listcell>
<listbox id = "lbProduct" hflex="1" mold="select" model="@{SN.PRODUCTLIST}" selectedItem="@{SN.PRODUCT}" >
<listitem self="@{each=NV}" label="@{NV.name}" value="@{NV.value}"/>
</listbox>
</listcell>
</listitem>
</listbox>
I want to set the dropdown list auto when it has product. how can i do it?
Hi cedarview!
Looks like you are using the old version of databinding here :) If you are just starting out a new project, you may want to have a look to the current version in here ;) http://books.zkoss.org/zk-mvvm-book/8.0/data_binding/index.html
Based on your code, I'm not sure what you mean by "set the dropdown list auto when it has a product". Do you want the dropdown to open when the model is filled? Or do you need to update the displayed label on the dropdown? Can you describe the use case?
PS: I made a fiddle to test out the case more easily :) feel free to modify it to share your use case. http://zkfiddle.org/sample/v91cau/3-Another-new-ZK-fiddle
PPS: raise your rep. to let you post links and screenshots if needed
Asked: 2017-09-07 13:21:50 +0800
Seen: 9 times
Last updated: Sep 08 '17
ZK Listbox Selectitems issue with Set
How to stop a bug from a listbox?
Cannot Change Listbox Header color & Background
Keyboard navigation in listbox
Can not display data in listbox
listbox with nonSelectabletags inplace new listitem
Input invoice using inline listbox
Change color to hover listitem listbox zk7 + Atlantic Theme
Listbox with autopaging causes constant row flickering
zk listbox getItems() returns null for item.getValue() if not scrolled fully