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

Combo box size too large

3 Answers 191 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Fahmi
Top achievements
Rank 1
Fahmi asked on 21 Jun 2011, 07:01 AM

The RadCombox I am using has only two values "AND" and "OR". How do I make the combo box shorter?
Please have a look at the attached screen shot and the corresponding code block below:

<telerik:RadComboBox ID="drpFilterType" runat="server" AutoPostBack="true" EnableViewState="true"
           Width="100px" Skin="Default"  MarkFirstMatch="True">                              
  <Items>
      <telerik:RadComboBoxItem Text="AND" Selected="true" Value="AND"/>
      <telerik:RadComboBoxItem Text="OR" Value="OR"/>
   </Items>
</telerik:RadComboBox>

3 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 21 Jun 2011, 12:29 PM
Hello Fahmi,

I tested the issue that you encounter and the RadComboBox does take the size that is given when using the Width property. Please take a look at the sample page that I have attached. Do you apply any other styles to some outer div for example that may be preventing this property to render correctly?

Greetings,
Kate
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.

0
Fahmi
Top achievements
Rank 1
answered on 22 Jun 2011, 01:14 AM
Hi Kate,

Actually I was looking for a way to remove the extra space below the dropdown options. Please refer to the new attachment.

--Fahmi 
0
Kate
Telerik team
answered on 24 Jun 2011, 04:10 PM
Hi Fahmi,

In general the RadComboBox control gets the height of the DropDown depending on the number of items that are placed in it. However, to explicitly set its height you could use the following css class selector.
<style type="text/css">
   .RadComboBoxDropDown .rcbScroll {
   height: 100px !important;
   }   
   </style>

All the best,
Kate
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
Fahmi
Top achievements
Rank 1
Answers by
Kate
Telerik team
Fahmi
Top achievements
Rank 1
Share this question
or