1

add spacer/border every 10th row in a Grid/Listbox

asked 2014-01-17 09:05:48 +0800

Forden gravatar image Forden
11 1

Hi, I have a Listbox with many rows. I'd like to add a space (just some white space) or a thicker line after every 10th row. So a User can easily count rows in blocks of 10 and for optical reasons to catch-eye a block.

I don't want paging.

Is it possible to apply a style like this?

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-01-17 10:27:23 +0800

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

http://zkfiddle.org/sample/261d7qp/3-space-every-10th-item

Greetz chill.

link publish delete flag offensive edit
0

answered 2014-01-17 11:58:13 +0800

Forden gravatar image Forden
11 1

Thanks.

I didn't know about forEachStatus.

Would it also be possible to apply some styling <html> / <separator> directly between the rows (at row/listitem level) and not at a listcell level?

link publish delete flag offensive edit

Comments

Adding row between the rows can be difficult or you must create your own renderer. Then in the code you can do what you want.

chillworld ( 2014-01-17 12:30:46 +0800 )edit

Well, in seconde thought, you can try a seconde template or check it with firebug. It is possible that its already in a row, and thx for accepting the answer

chillworld ( 2014-01-17 18:46:04 +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-01-17 09:05:48 +0800

Seen: 13 times

Last updated: Jan 17 '14

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