Kendo grid resize 缩小 IE 中的所有列 [英] Kendo grid resize shrinks all the columns in IE
问题描述
我在我的应用程序中使用 Kendo 网格.当我尝试在 IE 中调整列的大小时,表中的所有其他列都消失了.
I'm using Kendo grid in my application. When I try to resize a column in IE, all the other columns in the table disappear.
这不会在 Firefox 或 Chrome 中发生,只有 IE 9 和 10.
This does not happen in Firefox or Chrome, just IE 9 and 10.
有人可以帮忙解决这个问题吗?
Can someone please help on this as I'm breaking my head over this issue from a day?
推荐答案
问题在于列宽的混合百分比和像素.
The issue is with mixing percentages and px for your column width.
一种解决方案是确保为网格中的每一列指定特定的宽度(120 像素).
One solution is to make sure you assign a specific width to EVERY column in your grid (120px).
不要使用百分比,除非您的父级具有特定的宽度(不是 100%,而是 800px 或类似的宽度).
Do NOT use percentages, unless your parent has a specific width (not 100%, but 800px or something like that).
这篇关于Kendo grid resize 缩小 IE 中的所有列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!