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

RadComboBox width setting has no effect when label display style is block

2 Answers 151 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Bruce
Top achievements
Rank 1
Bruce asked on 01 May 2013, 07:55 PM
I have several AJAX RadComboBoxes (v.2013.1.417.40), on a browser form. In my style sheet I set the display to block. All the comboboxes are then displayed with a width of 2px regardless of the setting in the design window. Is there a way to do this?

css:
.rcbLabel
{
    display: block;
    color: seagreen;
}

rendered html:

<label for="ctl00_MainContent_uxVehicleMake_Input" class="rcbLabel">Manufacturer</label>
<table summary="combobox" style="border-width: 0px; border-collapse: collapse; width: 2px;" border="0">
    <tbody>
        <tr>
            <td class="rcbInputCell rcbInputCellLeft" style="width:100%;"><input autocomplete="off" name="ctl00$MainContent$uxVehicleMake" class="rcbInput radPreventDecorate rcbEmptyMessage" id="ctl00_MainContent_uxVehicleMake_Input" value="select a make" type="text">
            </td>
            <td class="rcbArrowCell rcbArrowCellRight">
                 <a id="ctl00_MainContent_uxVehicleMake_Arrow" style="overflow: hidden;display: block;position: relative;outline: none;">select</a>
            </td>
        </tr>
    </tbody>
</table>

2 Answers, 1 is accepted

Sort by
0
Ivan Zhekov
Telerik team
answered on 07 May 2013, 06:44 AM
Hi, Bruce.

That appears to be a bug in the combobox. When calculating the width of the combobox, the display of the label should be taken into consideration.

Just one last question: by any chance do you happen to have a RadFormDecorator on the page?

For this bug report I am awarding you some Telerik points, which you can see updated in your account profile.

Regards,
Ivan Zhekov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Bruce
Top achievements
Rank 1
answered on 07 May 2013, 02:45 PM
Thank you, No, there is no RadFormDecorator on the page. I did get the RadComboBoxes to display correctly, or at least to my satisfaction by adding width: 100%; to the .css file. The .rcbLabel class no appears as:

.rcbLabel
{
    display: block;
    color: seagreen;
    width: 100%;
}
Tags
ComboBox
Asked by
Bruce
Top achievements
Rank 1
Answers by
Ivan Zhekov
Telerik team
Bruce
Top achievements
Rank 1
Share this question
or