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

DropDownAutoWidth is not wide enough

1 Answer 25 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Helen
Top achievements
Rank 1
Helen asked on 09 Oct 2014, 03:47 PM
I have a enabled DropDownAutoWidth on my combobox but it seems to stay fixed width.  As you can see in the snapshot attached, the description in the last column word wraps instead of extending all the way.  Am I missing some settings?
<asp:Label ID="Label8" runat="server" Width="100px" Style="padding-left:22px" Text="Market:"  />
    <telerik:RadComboBox ID="RadMarketComboBox" runat="server" Width="80px" Height="150px" DataSourceID="SqlDataSourceMarket" DataTextField="market_cd" DataValueField="market_cd" EnableScreenBoundaryDetection="true" DropDownAutoWidth="Enabled"
        HighlightTemplatedItems="true" MarkFirstMatch="true" SelectedValue='<%# DataBinder.Eval(Container, "DataItem.market").ToString().Trim() %>'  >
        <HeaderTemplate>
            <table>
                <tr>
                    <td class="col1">Market</td>
                    <td class="col2">Desc</td>
                </tr>
            </table>
        </HeaderTemplate>
        <ItemTemplate>
            <table>
                <tr>
                    <td class="col1">
                        <%# DataBinder.Eval(Container.DataItem, "market_cd") %>
                    </td>
                    <td class="col2">
                        <%# DataBinder.Eval(Container.DataItem, "market_desc") %>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </telerik:RadComboBox>
    <asp:SqlDataSource ID="SqlDataSourceMarket" runat="server"
        ConnectionString="<%$ ConnectionStrings:OSS %>"
        SelectCommand="SELECT rtrim(ltrim(market_cd)) as market_cd, rtrim(ltrim(market_desc)) as market_desc, market_id
            FROM market
            ORDER BY market_cd">
    </asp:SqlDataSource><br />

Thank you,

Helen


1 Answer, 1 is accepted

Sort by
0
Magdalena
Telerik team
answered on 10 Oct 2014, 10:25 AM
Hello Helen,

We have tested the provided code with the mentioned version 2014.2.724, but the issue did not reproduce. We are sending you this video as a part of the testing for your reference. It is difficult to give you an exact solution when we are not able to reproduce the issue locally. Even thought, you can try to apply the following CSS:
.RadComboBoxDropDown.rcbAutoWidthResizer .rcbScroll {
    overflow-x: visible !important;
    overflow-y: scroll !important;
}

If this solution does not work for you, could you please open a support ticket so you will be able to attach a sample runnable project where the issue will be reproduced? Could you please also clarify the following:
  • what is the dll version of the control
  • what is the tested browser


Regards,
Magdalena
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ComboBox
Asked by
Helen
Top achievements
Rank 1
Answers by
Magdalena
Telerik team
Share this question
or