我正在使用一个带有四个冻结列的RadGrid,当我绑定网格时,它会在右端显示(Chrome)一个空列,并且所有数据都会在右一行错位。在IE中它完全搞砸了!
<ClientSettings AllowColumnsReorder="false" EnableRowHoverStyle="false" AllowDragToGroup="false" >
<Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="350px" FrozenColumnsCount="4">
</Scrolling>
<ClientEvents OnGridCreated="GridCreated" />
<Resizing AllowColumnResize="false" EnableRealTimeResize="true" />
</ClientSettings>
功能:
function GridCreated(sender, args)
{
var scrollArea = sender.GridDataDiv;
var dataHeight = sender.get_masterTableView().get_element().clientHeight;
if (dataHeight < 350)
{
scrollArea.style.height = dataHeight + 47 + "px";
}
}
答案 0 :(得分:0)
尝试在HTML端设置滚动高度,如下所示:
<Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="" FrozenColumnsCount="4">
</Scrolling>
告诉我们是否有效。