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

3 posts, 0 answers
  1. Bruce
    Bruce avatar
    17 posts
    Member since:
    Mar 2013

    Posted 01 May 2013 Link to this post

    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. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    651 posts

    Posted 07 May 2013 Link to this post

    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.
  3. Bruce
    Bruce avatar
    17 posts
    Member since:
    Mar 2013

    Posted 07 May 2013 Link to this post

    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%;
    }
Back to Top