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

[Solved] How to set row height for Grid row

4 Answers 704 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kudryk
Top achievements
Rank 1
Kudryk asked on 19 Mar 2015, 04:19 PM
I am using the latest version of Kendo UI Grid. Please advise if there any way to change top and bottom padding for grid row. The problem is that the heigh is set for <tr>

<tr role="row" data-uid="497445bb-2ebd-4c49-b101-117626ed6cd4" class="k-alt" style="height: 49px;"><td role="gridcell" style="text-align:center;">Україна</td><td role="gridcell" style="text-align:left;"><a title="ТОВ Палітра">Палітра</a></td></tr>


4 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 20 Mar 2015, 10:59 AM
Hi Kudryk,

The following CSS rule shouls help to achieve the expected result: 
.k-grid td {
   padding: 0;
}


Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Kudryk
Top achievements
Rank 1
answered on 20 Mar 2015, 01:37 PM
I've just tested and it did not help me to change row height.
As I see, In order to create frozen columns kendo developers divides table on two and calculate row height using JS. Is there any way change the calculated row height ?
I want to row height is calculated depending on the content, but I do not need such large paddings at the top and bottom
0
Kudryk
Top achievements
Rank 1
answered on 20 Mar 2015, 01:52 PM
Here is what I am talking about
0
Iliana Dyankova
Telerik team
answered on 24 Mar 2015, 07:52 AM
Hi Kudryk,

I tested the suggested CSS rule and it is working as expected on my side (dojo example). Is it possible to modify the test example or provide an isolated runnable project which demonstrates your current implementation? This way I would be able to provide concrete recommendations and advice you further. Thank you in advance for your cooperation and time.

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Kudryk
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Kudryk
Top achievements
Rank 1
Share this question
or