1

How to rowspan a listcell?

asked 2014-09-15 12:07:15 +0800

Neus gravatar image Neus
1415 14

Hi, I need to apply a rowspan to a listcell of a listbox.

I can't use a Grid because I need to be able to select the rows.

How can I do it??

Thank you!

delete flag offensive retag edit

4 Answers

Sort by ยป oldest newest most voted
1

answered 2014-09-16 05:52:29 +0800

cor3000 gravatar image cor3000
4332 1 7
ZK Team

The <listcell> does not support rowspan directly.

However if you can live with/compensate some unclarities yet to test (e.g. paging, sorting, render on demand, multiple selection with checkmark, changing column visibility ...) many things that can be affected.

You can use a client/attribute to set the rowspan attribute directly: http://zkfiddle.org/sample/1lc4os9/1-rowspan-in-a-listbox

also refer to: http://books.zkoss.org/wiki/ZUMLReference/ZUML/Namespaces/ClientAttribute

link publish delete flag offensive edit
0

answered 2014-09-15 12:31:47 +0800

chillworld gravatar image chillworld flag of Belgium
5322 4 9
https://github.com/chillw...

Do you really need a row or just multiple lines under each other?

You can use hbox and vbox inside the listcell.

See this fiddle.

Greetz chill.

link publish delete flag offensive edit

Comments

I need something like this with the grid: http://zkfiddle.org/sample/phochj/2-Grid-with-rowspan As you can see, the first cell has a rowspan that spans to the second row

Neus ( 2014-09-15 12:52:59 +0800 )edit

mhh intresting, you can span the columns but not the rows in a listbox (but you can add selection to a grid with the onClick event ;) )

chillworld ( 2014-09-15 13:27:00 +0800 )edit
0

answered 2014-09-16 09:21:05 +0800

Neus gravatar image Neus
1415 14

I finally use a grid and the onClick event to select the row. Thank you both

link publish delete flag offensive edit
0

answered 2014-09-16 11:49:26 +0800

marynar gravatar image marynar
1
http://www.co-oferuja-ban...

you were very usefull for me :)

link publish delete flag offensive edit

Comments

You could always vote for the topic and the usefull answer.

chillworld ( 2014-09-16 12:08:00 +0800 )edit
Your answer
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
1 follower

RSS

Stats

Asked: 2014-09-15 12:07:15 +0800

Seen: 26 times

Last updated: Sep 16 '14

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