Grid Height based on Browser Height

QuestionsGrid Height based on Browser Height
Mike Sheppard asked 9 months ago

I am having issues with report heights when the browser window is resized, or smaller than normal.

I would like to have the grid height set based on the current height of the browser. So a 700 pixel browser height would have a 700 pixel report. A 1,000 pixel browser height would have a 1,000 pixel report. Even better if the window could resize automatically with the browser.

I tried Height=100%, but that just makes the report full height for the number of records, making it worse.

The primary issue is I cannot see the pager at the bottom of the report.

Please advise

 

Thanks

 

Mike

3 Answers
Abu Ghufran Staff answered 9 months ago

Hello,

You can achive this by following:

$opt["autoheight"] = true;
...
$g->set_options($opt);

Second, in html code, Encode your grid output in a div with height e.g. 97vh

<div style="height:97vh;">
<?php echo $out?>
</div>

I will be sending you latest build as well on which i verified this case.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Reinberger answered 8 months ago

Hello,

 

I have the same problem.
But I can't solve the problem with the solution above

 

 

Abu answered 8 months ago

i”ve emailed you updated build. Should work after that.

Your Answer

14 + 14 =

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?