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

RadDropDownList width

3 Answers 437 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
RaY
Top achievements
Rank 1
RaY asked on 30 Jan 2014, 04:22 PM
I'm using RadDropDownList but I have a problem when I set a width to the component.

The textbox have the desired width but the list of items doesn't have it. That works fine with RadCombobox where either the textbox and the list of items adjust to the width I set.

I attach a few images to explain what I mean.

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 31 Jan 2014, 03:19 AM
Hi Ray,

Please have a look into the following code snippet which works as expected for me.

ASPX:
<telerik:RadDropDownList ID="RadDropDownList1" runat="server" Width="500px">
    <Items>
        <telerik:DropDownListItem Text="Item1" />
        <telerik:DropDownListItem Text="Item2" />
    </Items>
</telerik:RadDropDownList>

Thanks,
Princy.
0
RaY
Top achievements
Rank 1
answered on 31 Jan 2014, 08:27 AM
I have tried your code with the same result than you, but if I change the Width to "1500px" for example, the control size doesn't change.

If I do it using css, the size of the control itself change, but not the list of items size:

.RadDropDownList.RadDropDrownListShort,
.RadDropDrownListShort .rddlPopup {
    width: 80px !important;
}
0
Princy
Top achievements
Rank 2
answered on 03 Feb 2014, 03:03 AM
Hi Ray,

Please try the following CSS which works as expected for me.

CSS:
<style type="text/css">
    .RadDropDownList, .rddlPopup
    {
        width: 1500px !important;
    }
</style>

Thanks,
Princy.
Tags
DropDownList
Asked by
RaY
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
RaY
Top achievements
Rank 1
Share this question
or