DropDownAutoWidth is not wide enough

2 posts, 0 answers
  1. Helen
    Helen avatar
    42 posts
    Member since:
    Nov 2013

    Posted 09 Oct 2014 Link to this post

    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


  2. Magdalena
    Admin
    Magdalena avatar
    421 posts

    Posted 10 Oct 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top