teleerik下拉列表底部出现空白,其中包含一定数量的项目
本文关键字:包含一 项目 底部 下拉列表 空白 teleerik | 更新日期: 2023-09-27 18:07:56
我正在使用teleerik控件,当我使用包含11个元素的下拉列表时,它在列表底部出现一个空白。
我尝试在telerik的演示页面中,使用chrome工具更改下拉列表的内容,结果相同。
如果我放了超过15个元素,然后显示一个条,我可以滚动,如果有少于11个,那么高度调整正确。
telerik演示有谁知道如何用空格删除它吗?
将默认的RadDropDownList拖到winForm后,我添加了11个元素。它只会显示5,然后自动滚动。我改变了DropDownMinSize的高度属性为200,我得到了以下内容:
(http://www.sogentech.com/images/11Elements.jpg)
从你给出的链接来看,我希望你是在为网络开发。以下是兰斯洛特在Telerik网站上关于控制尺寸的简短解释。我有一种感觉,MinSize或类似的设置(也许MinDropDownHeight)是你想玩的。下面的代码是专门为Silverlight编写的,但这应该能让你走上正确的道路:
<!-- Here I've inserted a RadComboBox, I've also set some initial properties-->
<telerik:RadComboBox Margin="211,59,179,0"
VerticalAlignment="Center"
HorizontalAlignment="Center"
MaxDropDownHeight="225"
MinWidth="100"
ScrollViewer.HorizontalScrollBarVisibility="Auto"
ScrollViewer.VerticalScrollBarVisibility="Auto"
IsMouseWheelEnabled="False"
Text="Top Text Title"
EmptyText="empty">
<!-- This is the default style, it uses the parent container's properties such as width and height -->
<telerik:RadComboBoxItem Content="First list Item"/>
<!-- You can explicitly change and set the height/width of the list item by doing this-->
<telerik:RadComboBoxItem Content="Second List Item"
Height="100"
Width="100"/>
<!-- Or you can do what I've done here. I set a Minimum width and height and then set the scrollBar to "Auto"-->
<telerik:RadComboBoxItem Content="Third list item"
ScrollViewer.HorizontalScrollBarVisibility="Auto"
ScrollViewer.VerticalScrollBarVisibility="Auto"
MinHeight="50"
MinWidth="200"/>
</telerik:RadComboBox>
</Grid>