How to have a grid size fixed at 10 row even if there is less than 10 items?

asked 2015-12-02 17:33:05 +0800

WilliamB gravatar image WilliamB
1609 1 6

I've a page size of 10 so if over 10 items it get paginated with 10 per page. But if there is 5 items the grid only take the size of 5 rows.

I do not want the grid to take all my container size, just want it to be always 10 row sized.


delete flag offensive retag edit


William, maybe a fix height help you

chillworld ( 2015-12-03 05:18:10 +0800 )edit

Hey Chill, I do not want a fix height in px or %, i want a fix height in number of rows. Probably not posssible.

WilliamB ( 2015-12-03 09:24:35 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-12-03 10:06:23 +0800

chillworld gravatar image chillworld flag of Belgium
5322 4 9

It's possible,

First of all, read this forum thread and answer by Cor3000.

@template(each eq null ? 'faker' : 'model') (in case you add a null value for the faker)

So the only thing you need to do is adding null until you have your size of the page.

Greetz chill.

link publish delete flag offensive edit


Thanks for the link, however can'ut use Zscript in tomcat replication environment. And adding empty element in my model is a bit too dirty for me.

Thanks anyway.

WilliamB ( 2015-12-03 13:35:43 +0800 )edit

Another idea. When index is the last put a new grid into the row wit empty rows. I can fiddle it now because I don't have time ATM.

chillworld ( 2015-12-04 08:17:31 +0800 )edit

Thanks Chill, but I was really looking for a grid attribut that I might have missed.

WilliamB ( 2015-12-04 09:51:10 +0800 )edit

Not really. But you could make a request for that.

chillworld ( 2015-12-04 11:18: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

1 follower



Asked: 2015-12-02 17:33:05 +0800

Seen: 25 times

Last updated: Dec 03 '15

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