0

Multiple column in single list cell

asked 2010-04-27 03:11:22 +0800

asgar gravatar image asgar
132 1 3

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.

delete flag offensive retag edit

22 Replies

Sort by ยป oldest newest

answered 2010-04-27 03:58:58 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-04-27 04:04:01 +0800

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

link publish delete flag offensive edit

answered 2010-04-27 04:59:10 +0800

asgar gravatar image asgar
132 1 3

updated 2010-04-27 06:54:24 +0800

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.

link publish delete flag offensive edit

answered 2010-04-27 16:23:34 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

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

link publish delete flag offensive edit

answered 2010-04-28 00:43:11 +0800

asgar gravatar image asgar
132 1 3

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

link publish delete flag offensive edit

answered 2010-04-28 02:04:37 +0800

ashishd gravatar image ashishd flag of Taiwan
1972 6

Hi asgar,
I will suggest you do it using ZK MVC approach and writing your own listbox render as data binding will not magically split record data into multiple columns for you.

Thanks
- Ashish

link publish delete flag offensive edit

answered 2010-04-28 03:35:13 +0800

asgar gravatar image asgar
132 1 3

Thanks Ashish for your reply. If possible, can you send me any examples for my requirements.

Thanks
Asgar.

link publish delete flag offensive edit

answered 2010-04-28 04:49:20 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

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

link publish delete flag offensive edit

answered 2010-04-28 05:12:15 +0800

asgar gravatar image asgar
132 1 3

I have sent an email to your personal email id. please check it.

Thanks,
Asgar.

link publish delete flag offensive edit

answered 2010-04-30 09:33:27 +0800

asgar gravatar image asgar
132 1 3

<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.

link publish delete flag offensive edit

answered 2010-04-30 10:17:37 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Have you had a look at the code links from the email ?

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: 2010-04-27 03:11:22 +0800

Seen: 2,011 times

Last updated: May 11 '10

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