将Telerik radcombox项目分为两列

将Telerik radcombox项目分为两列,telerik,radcombobox,Telerik,Radcombobox,如何将下面的rad组合框项目安排为两列,以便向下展开不会像现在这样大。可能吗?。我想将列表项保留在两个单独的列中,两列上都有复选框 <telerik:RadComboBox ID="rcmbFormsAndDimensions" runat="server" CheckBoxes="true" Text='<%# Bind("Form_Dimensions") %>' Width="650px" CheckedItemsTexts="DisplayAllInInput

如何将下面的rad组合框项目安排为两列,以便向下展开不会像现在这样大。可能吗?。我想将列表项保留在两个单独的列中,两列上都有复选框

<telerik:RadComboBox ID="rcmbFormsAndDimensions" runat="server"   CheckBoxes="true"   Text='<%# Bind("Form_Dimensions") %>'  Width="650px" CheckedItemsTexts="DisplayAllInInput">
                                            <Items>
                                                <telerik:RadComboBoxItem Text="single pen"  />
                                                <telerik:RadComboBoxItem Text="shotgun" />
                                                <telerik:RadComboBoxItem Text="double-shotgun" />
                                                <telerik:RadComboBoxItem Text="camelback" />
                                                <telerik:RadComboBoxItem Text="double pen" />
                                                <telerik:RadComboBoxItem Text="hall-parlor" />
                                                <telerik:RadComboBoxItem Text="saddlebag" />
                                                <telerik:RadComboBoxItem Text="creole cottage" />
                                                <telerik:RadComboBoxItem Text="dog trot" />
                                                <telerik:RadComboBoxItem Text="central-hall" />
                                                <telerik:RadComboBoxItem Text="gable-ell" />
                                                <telerik:RadComboBoxItem Text="bungalow" />
                                                <telerik:RadComboBoxItem Text="pyramidal cottage" />
                                                <telerik:RadComboBoxItem Text="Queen Anne cottage" />
                                                <telerik:RadComboBoxItem Text="central-hall, 2 pile cottage" />
                                                <telerik:RadComboBoxItem Text=" bluffland cottage" />
                                                <telerik:RadComboBoxItem Text="central-hall I-house" />
                                                <telerik:RadComboBoxItem Text="double-pen I-house" />
                                                <telerik:RadComboBoxItem Text="hall-parlor I-house" />
                                                <telerik:RadComboBoxItem Text="Creole house" />
                                                <telerik:RadComboBoxItem Text="central hall, 2 pile house" />
                                                <telerik:RadComboBoxItem Text=" Queen Anne house" />
                                                <telerik:RadComboBoxItem Text="four square" />
                                                <telerik:RadComboBoxItem Text="minimal tradition cottage" />
                                                <telerik:RadComboBoxItem Text="split level" />
                                                <telerik:RadComboBoxItem Text="ranch" />
                                                <telerik:RadComboBoxItem Text="row house" />
                                                <telerik:RadComboBoxItem Text="warehouse" />
                                                <telerik:RadComboBoxItem Text="depot" />
                                                <telerik:RadComboBoxItem Text="skyscraper" />
                                                <telerik:RadComboBoxItem Text=" commercial row bldg." />
                                                <telerik:RadComboBoxItem Text=" freestanding commercial" />
                                                <telerik:RadComboBoxItem Text=" single-crib barn" />
                                                <telerik:RadComboBoxItem Text="transverse-crib barn" />
                                                <telerik:RadComboBoxItem Text="other" />                                        
                                              </Items>
                                        </telerik:RadComboBox>

我不确定您的情况,但这是我在ASP页面中从数据集获取值的方式:

for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
  {
   DropDownList1.Items.Add(string.Format("{0:}", ds.Tables[0].Rows[i]["Pnum"])+
   spacer + (ds.Tables[0].Rows[i]["Project"]) + spacer +
   (ds.Tables[0].Rows[i]["Description"]));
   }
for(int i=0;i

要查看上述代码的结果,您可以查看我为其他内容提出的问题。

您可以使用Telerik在其网站上提供的解决方案。祝你好运

之后,您可以向组合框添加其他样式,以获得正确的列数

<telerik:RadComboBox ID="rcmbFormsAndDimensions" runat="server"   CheckBoxes="true" CssClass="SetComboBoxWidth" CheckedItemsTexts="DisplayAllInInput" DropDownCssClass="multipleRowsColumns">

 .SetComboBoxWidth{
    min-width: 280px;
}

.SetComboxWidth{
最小宽度:280px;
}

在上面,您可以看到解决方案的示例