-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I want multiple column in a single list cell within listbox. Is it possible? If not,
then give me any alternative solution/s.
Thanks in advance.
Asgar.
You can stick all together
. . . <listcell> <hbox> <image src="/images/countrycode_flags/de.gif" /> <label value="1. label" /> <label value="2. label" /> </hbox> </listcell> . . .
best
Stephan
thanks for your reply...
<listbox model="@{institutionList}" checkmark="true" multiple="true">
<listitem self="@{each=institutionList}" value="@{institutionList}" >
<listcell label="@{institutionList.institutionGroup}" style="font-family: Arial,Helvetica,sans-serif; font-size: 9px;font-weight: ;"/>
</listitem>
</listbox>
In the above coding, we got result in single column. We need to display the data in horizontally.
i.e we need multiple columns instead of single column because the list contains more than 100 values.
One more problem, popup is not working in listcell with toolbarbutton. i.e. click on toolbarbutton inside listcell
not showing the popup.
<listcell>
<toolbarbutton image="/images/Plain-People.ico" popup="tagpopup" />
</listcell>
Thanks.
Don't know exactly what you mean.
. . . <listcell label="@{institutionList.institutionGroup}" style="font-family: Arial,Helvetica,sans-serif; font-size: 9px;font-weight: ;"/> <listcell label="@{institutionList.institutionName}" style="font-family: Arial,Helvetica,sans-serif; font-size: 9px;font-weight: ;"/> <listcell label="@{institutionList.institutionCity}" style="font-family: Arial,Helvetica,sans-serif; font-size: 9px;font-weight: ;"/> <listcell label="@{institutionList.institutionState}" style="font-family: Arial,Helvetica,sans-serif; font-size: 9px;font-weight: ;"/> . . .
Have you try it in a grid?
Page 155 from ZK Developer Guide 3.6.3
'Don't use a list box, when a grid is a better choice. The ..... only to represent a list of selectable items.'
best
Stephan
For example, I have to bind one column in database table with listcell. In that column, i have 100 records,
when i bind directly with listcell as mentioned by you, it shows 100 records one by one.
Actually, i need to split single listcell into 5 parts and display 20 records in each parts.
If you not clear with this, pl. send your email address. I will send screen shots for my requirements.
Thanks
For example, I have to bind one column in database table with listcell. In that column, i have 100 records
It's hard to understand your english. :-)
Do you mean a master-detail ?
best
Stephan
sge(at)forsthaus(dot)de
<listcell>
<hbox>
<image src="/images/countrycode_flags/de.gif" />
<label value="1. label" />
<label value="2. label" />
</hbox>
</listcell>
This is ok to display static data.
I need to display dynamic values in hbox as like the above code.
<listcell>
<hbox>
<label value="@{institutionList.institutionGroup}" />
</hbox>
</listcell>
above databinding code is displaying the data like ( status
unread
read).
my requirement is to display the data horizontally i.e(Status, Unread, read,).
please send me solution for this problem.
Thanks,
Asgar.
Have you had a look at the code links from the email ?
Asked: 2010-04-27 03:11:22 +0800
Seen: 2,011 times
Last updated: May 11 '10