简体   繁体   English

在冻结的列中隐藏水平滚动条

[英]Hiding Horizontal Scroll bar in frozen columns

I have a RadGrid in which I want the first two columns fixed. 我有一个RadGrid,我想要修复前两列。 I got that by using this code: 我通过使用此代码得到了它:

<telerik:RadGrid ID="rgCallLogin" runat="server" AllowFilteringByColumn="True">
    <ClientSettings>
        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="2">
        </Scrolling>
    </ClientSettings>
    <MasterTableView>
        --
        --
    </MasterTableView>
</telerik:RadGrid>

Now I have a horizontal scroll bar in all the columns. 现在我在所有列中都有一个水平滚动条。 Is there any way to show the scroll bar only in the non-frozen columns? 有没有办法只在非冻结列中显示滚动条?

截图

No. There does not appear to be any way to achieve this (as you can imagine since this question has gone unanswered). 没有。似乎没有任何方法可以实现这一点(因为你可以想象,因为这个问题没有得到解决)。 This is because it is the rgDataDiv that is scrolling, and it contains all of the columns. 这是因为它是滚动的rgDataDiv,它包含所有列。 The freeze column effect is actually setting display: none on the leftmost unfrozen column as you scroll. 冻结列效果实际上是在滚动时在最左边的未冻结列上设置display:none。

FYI, there is sort of an alternate solution in that you can enable ClientSettings.Scrolling.EnableNextPrevFrozenColumns for button-based scrolling through the unfrozen columns. 仅供参考,有一种替代解决方案,您可以启用ClientSettings.Scrolling.EnableNextPrevFrozenColumns,以便通过未冻结的列滚动按钮。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM