[英]Kendo Grid align column same top offset
I have a problem and I cannot find solution to it.我有一个问题,我找不到解决办法。
I have KendoUI Grid which has different row height - like in this example http://jsfiddle.net/Sbb5Z/2/我有具有不同行高的 KendoUI 网格 - 就像在这个例子中http://jsfiddle.net/Sbb5Z/2/
I tried with special class in column but nothing helps我尝试在专栏中使用特殊课程,但没有任何帮助
{
attributes: {
"class": "paddingTopZero"
},
}
where 3rd row is bigger than other (2 rows in 4th column).其中第 3 行比其他行大(第 4 列中的 2 行)。
I would like to achive, that data in this row would have all same top offset - so 1., 2., 3. 5. and 6th column in this row wouldn't be positioned in the middle of the row but on the same line ans 4th row - same top padding.我想实现,该行中的数据将具有相同的顶部偏移量 - 因此该行中的 1., 2., 3. 5. 和第 6 列不会位于该行的中间,而是位于同一行line ans 4th row - 相同的顶部填充。
Is there and way to achive that?有没有办法做到这一点? I really wound't like to correct this paddings manually - I'm sure grid has this options but I just cannot find it.我真的很不喜欢手动更正这些填充 - 我确定 grid 有这个选项,但我找不到它。
Tnx for and idea with this Tnx 和这个想法
Use CSSvertical-align
property:使用 CSSvertical-align
属性:
vertical-align: top
You can use as you tried, declaring it in a class and define in column's attribute
property.您可以尝试使用,在类中声明它并在列的attribute
属性中定义。 Or you can set it as global to any grid you have with:或者您可以将其设置为您拥有的任何网格的全局:
.k-grid tbody tr td
{
vertical-align: top
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.