How to set grid height to show only one row? height and rowNum not working

QuestionsHow to set grid height to show only one row? height and rowNum not working
Gustavo lazaro asked 5 months ago

Hi,

I’m trying to configure my PHPGrid so that it only shows the height of one single row. I tried setting `height` to a small value (e.g., 30 or “auto”) and `rowNum` to 1, but the grid still renders with more vertical space than needed.

My goal is for the grid to display only **one record’s height**, without the extra space below . How can I achieve that?

Any suggestions are appreciated. Thanks!

1 Answers
Abu Ghufran Staff answered 5 months ago

Hi,

Some css custom code is required for that.

Here is the demo code: https://gist.github.com/gridphp/e38b198f6856e91b84ab80d3602462fe

Refer:
line 25-28 : single row display setting with no caption row and toolbar
line 51-53: remove min-height limit of datagrid.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

14 + 16 =

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?