This is a migrated thread and some comments may be shown as answers.

Row Height Limits

2 Answers 1583 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Veteran
Steve asked on 03 Jul 2020, 11:11 PM

I've used your example code to adjust the font size on a grid and been using rowheight to adjust the row height but there appears to be some limit as too how small you can make the row height.

I've attached a screen shot which shows there is a lot of space in the row above and below the small text, can this be reduced?

Cheers

Steve

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 04 Jul 2020, 07:47 AM

Hi Steve,

The rows have some padding by default, so you may want to add a CSS rule that removes or decreases it.

If we take the example from the docs, here's an additional rule to do that (screenshot of the result is attached):

 

        div.smallerFont.k-grid td {
            padding: 0;
        }

 

 

Regards,
Marin Bratanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Steve
Top achievements
Rank 1
Veteran
answered on 04 Jul 2020, 08:52 AM
Terrific, Thank You...
Tags
Grid
Asked by
Steve
Top achievements
Rank 1
Veteran
Answers by
Marin Bratanov
Telerik team
Steve
Top achievements
Rank 1
Veteran
Share this question
or