missing dropdown scrollbar

9 posts, 0 answers
  1. Albert Shenker
    Albert Shenker avatar
    550 posts
    Member since:
    Mar 2004

    Posted 05 Nov 2013 Link to this post


        Limiting the dropdown height in certain circumstances using the DropDownHeight property is fine, but why does the autocomplete dropdown not behave the same way as all the other dropdowns in your control suite in that a scrollbar will appear if the dropdown is too large for the vertical space available?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 06 Nov 2013 Link to this post

    Hi Albert,

    By default the RadAutoCompleteBox drop-down displays a scroll bar if the DropDownHeight property is set and there are lot if items to be populated in the drop down. Please check the sample code and the attached screenshot.

    ASPX:
    <telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" DropDownHeight="200px" DropDownWidth="150px"
        runat="server" EmptyMessage="Enter Name" DataSourceID="SqlDataSource1" DataTextField="ContactName">
    </telerik:RadAutoCompleteBox>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
        SelectCommand="select ContactName from [Customers]"></asp:SqlDataSource>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Albert Shenker
    Albert Shenker avatar
    550 posts
    Member since:
    Mar 2004

    Posted 06 Nov 2013 Link to this post

    What I meant was, none of your other drop down controls require developers to explicitly set a dropdownheight in order for scroll bars to properly appear when the list is longer than the space available. Why is this control different? By the same token, why must we explicitly set a dropdownwidth in order to have the dropdown be as wide as the control itself. Why on earth would this not be the default behavior?
  5. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 08 Nov 2013 Link to this post

    Hello Albert,

    Your observations are correct and I have already forwarded this feature request to our developer team. As for your other inquiry about the DropDownWidth - this rendering is by design, since the RadAutoCompleteBox will expand regarding the selected entries or regarding the predefined width of the RadAutoCompleteBox.

    Regards,
    Nencho
    Telerik
    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 the blog feed now.
  6. Albert Shenker
    Albert Shenker avatar
    550 posts
    Member since:
    Mar 2004

    Posted 08 Nov 2013 Link to this post

    Ok, thanks re DropDown Scrollbars. As for the DropDownWidth... I understand that the autocomplete box may change size if the number of selected items increases. I just think the INITIAL dropdown width should be equal to the autocomplete box width without having to manually set it. This would be more intuitive. And to be honest I'm not sure why the dropdown width wouldn't automatically scale with the changes in autocompletebox width due to item selection, but maybe there's some sort of technical reason.
  7. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 13 Nov 2013 Link to this post

    Hello Albert,

    This suggestion about the identical width of the RadAutoCompleteBox and the DropDown was already considered and we had decided to implement it. I am afraid that I cannot provide you with an exact time frame, but I can assure you that it will be implemented and released as soon as possible.

    Regards,
    Nencho
    Telerik
    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 the blog feed now.
  8. Albert Shenker
    Albert Shenker avatar
    550 posts
    Member since:
    Mar 2004

    Posted 13 Nov 2013 Link to this post

    Thanks.
  9. Albert Shenker
    Albert Shenker avatar
    550 posts
    Member since:
    Mar 2004

    Posted 24 Sep 2014 Link to this post

    Any update on the anticipated availability of these fixes?
  10. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    539 posts

    Posted 29 Sep 2014 Link to this post

    Hello, Al.

    Unfortunately, we still haven't implemented the desired behaviour. Until recently, we haven't really spent much time debating on what the behaviour should be.

    We did agree on behaviour similar (if not the same) to what you have suggested. Namely, if the control has width different than the default one and no dropdownwidth is specified, the dropdown should be as wide as the control.

    There are few other scenarios we would like to clear out and then the item will be pending for implementation.

    Regards,
    Ivan Zhekov
    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.

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