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

Fixed Row Height

1 Answer 1275 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nico
Top achievements
Rank 1
Veteran
Iron
Nico asked on 05 Jan 2021, 07:55 PM
Hello!
I have set the grids row height with the given property to 65.
The problem is, that the row height will change dynamically, I guess the row height property is some sort of max height.
Is there a way to change the row height to a fixed value of e.g. 65?

Thank you & best regards
Nico

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 05 Jan 2021, 08:55 PM

Hello Nico,

The RowHeight is set as an inline rule on the <tr> element. It is used for Virtual Scrolling so the grid can perform the necessary calculations (see the Notes section of the article).

The way browsers handle <table> elements and their sizes, however, is complex and such a height rule is only a guidance - it is more like min-height, because if there is a cell with larger content, the browser will disregard this height and make the row taller. If you can find a CSS solution for this behavior, you can target the grid cells easily with it.

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Nico
Top achievements
Rank 1
Veteran
Iron
Answers by
Marin Bratanov
Telerik team
Share this question
or