admin管理员组文章数量:1325236
Previously when using the Kendo UI Grid control (version 2014.1.318), the height of any rows in my grid were fixed and ellipses were used to show any content outside the width of the cell - looking a little like the below:
Now, since I upgraded to the latest version of the controls (2014.2.903), the height of the row seems to be adjusted to fit the content:
The HTML for that row now contains the in-line style of the below, whereas previously it did not.
style="height: 45px;"
I'm guessing this is the problem. I want to know if there's a way to turn off this feature or where in the scripts I can remove this. I can't even find when this was introduced in the release history!
EDIT: I've identified the problem lies within the kendomon.min.css file. If I use the old one, everything works fine... just got to find the new style that's causing the issue
Previously when using the Kendo UI Grid control (version 2014.1.318), the height of any rows in my grid were fixed and ellipses were used to show any content outside the width of the cell - looking a little like the below:
Now, since I upgraded to the latest version of the controls (2014.2.903), the height of the row seems to be adjusted to fit the content:
The HTML for that row now contains the in-line style of the below, whereas previously it did not.
style="height: 45px;"
I'm guessing this is the problem. I want to know if there's a way to turn off this feature or where in the scripts I can remove this. I can't even find when this was introduced in the release history!
EDIT: I've identified the problem lies within the kendo.mon.min.css file. If I use the old one, everything works fine... just got to find the new style that's causing the issue
Share Improve this question edited Sep 24, 2014 at 14:36 loxdog asked Sep 24, 2014 at 13:14 loxdogloxdog 1,0073 gold badges12 silver badges30 bronze badges 1- Can you replicate in dojo.telerik.? That will help us troubleshoot. – user244313 Commented Sep 24, 2014 at 14:31
2 Answers
Reset to default 6You might consider providing your own CSS to adjust the Grid. I've provided an example here. The main CSS that would interest you being:
.k-grid table {
table-layout: fixed;
}
.k-grid tbody tr{
height: 50px;
}
.k-grid td{
white-space: nowrap;
text-overflow: ellipsis;
}
You can read more about this on the Telerik forums
Following up from Cody's CSS, the problem was found in the kendo.mon.css file. I used the entire new set of files from 2014.2.903, but with that one file set to the 2014.1.318 version. Not sure what's changed in those files, as I ran a parison and couldn't spot the offending line.
本文标签: javascriptKendo UI Grid Row Height set Dynamically by controlStack Overflow
版权声明:本文标题:javascript - Kendo UI Grid Row Height set Dynamically by control - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742166326a2425892.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论