Height & Scroll

QuestionsHeight & Scroll
Massimo Gagliardi asked 9 years ago

If I use the "$grid['scroll'] = true;" having a "$grid['footerrow'] = true;" in which I put a total row I have a total of 20 rows (scroll default) but I see only the first 15 rows.
If I define "$grid['height'] = '100%';" then I see 20 rows but I can't scrolling the grid because I don't have a scrollbar.
Where is the error?
Thank in advance
Massimo Gagliardi

5 Answers
Massimo Gagliardi answered 9 years ago

Add to my last:
I setted "$grid['rowNum'] = 20;" but I see only 15 rows and the total is for 20 rows.
How I do to see 20 rows?

Abu Ghufran answered 9 years ago

I don't fully understand your query.
However, you can set height to fixed pixels to get exact 20 row.

e.g.
$grid['height'] = '200';

When you set scroll = true, it will then remove the paging and load more records when you scroll to last record.
You must have more than 'rowNum' records to use scroll function.

Massimo Gagliardi answered 9 years ago

In my database I have 21 rows.
Without the scroll active I see 20 rows in the first page of the grid and, obviously, 1 row in the 2nd page.
The sum that I put in the footer row shows ever the total of the page, not the general total.
With the scroll active however I can have, scrolling the grid until the end, the general total.
But, also if i put the rownum = 20, I have, in the first page, the sum of the first 20 rows but I see only the first 15 rows !!!
If I set height=460 (to see 20 rows) in the 2nd page I have the same height but only one row !!
Thanks
Massimo Gagliardi

Massimo Gagliardi answered 9 years ago

Erratum to my previous.
If I set height = 460 (to see 20 lines), if I filter the result I will have the same height, but, for example, only one row !!

Abu Ghufran answered 9 years ago

The height of the grid is not dynamic based on records.
You can set it once when configuring grid settings.

Your Answer

16 + 4 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?