This is a migrated thread and some comments may be shown as answers.

Change Height of Items in ComboBox

1 Answer 83 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Landon
Top achievements
Rank 2
Landon asked on 13 Apr 2011, 09:18 PM
Hi there,

I'm currently building a web application to be used on a Tablet/Touch based computer. I've got a lot of RadComboBoxes on my page that are both binded to a DataSource or called by a WebService.  
The problem is, my ComboBoxes are pulling a multitude of items, and depending on the size of the User's fingers it may be hard for them to select items in the drop-down area of the RadComboBox.

Is there a way of setting the height of the ComboBox Items? I'm guessing it should just be slight CSS change.

Here's an example of one of my boxes.

<telerik:RadComboBox
        runat="server"
        ID="LabourName1"
        Width="180px"
        Skin="WebBlue"
        AllowCustomText="true"
        MaxHeight="200px"
        EmptyMessage="Employee Name"
        CssClass="LabourCell"
        EnableTextSelection="true"
        MarkFirstMatch="true"
        EnableLoadOnDemand="true"
        Filter="Contains">
 
            <webservicesettings path="~/FieldService.asmx" method="GetEmployees" />
            </telerik:RadComboBox>

Best Regards,

Landon

1 Answer, 1 is accepted

Sort by
0
Accepted
Helen
Telerik team
answered on 14 Apr 2011, 04:23 PM
Hello Landon,

Please add the following to your page's head tag:

<style type="text/css">
        .RadComboBoxDropDown .rcbItem,
        .RadComboBoxDropDown .rcbHovered,
        .RadComboBoxDropDown .rcbDisabled,
        .RadComboBoxDropDown .rcbLoading
        {
             
            height: 50px;
        }
</style>



Regards,
Helen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
ComboBox
Asked by
Landon
Top achievements
Rank 2
Answers by
Helen
Telerik team
Share this question
or