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

missing dropdown scrollbar

8 Answers 125 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Albert Shenker asked on 05 Nov 2013, 02:57 PM

    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?

8 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Nov 2013, 01:03 PM
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.
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 06 Nov 2013, 01:16 PM
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?
0
Nencho
Telerik team
answered on 08 Nov 2013, 03:29 PM
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.
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 08 Nov 2013, 03:41 PM
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.
0
Nencho
Telerik team
answered on 13 Nov 2013, 02:03 PM
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.
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 13 Nov 2013, 02:21 PM
Thanks.
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 24 Sep 2014, 08:10 PM
Any update on the anticipated availability of these fixes?
0
Ivan Zhekov
Telerik team
answered on 29 Sep 2014, 06:33 PM
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.

 
Tags
AutoCompleteBox
Asked by
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Answers by
Shinu
Top achievements
Rank 2
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Nencho
Telerik team
Ivan Zhekov
Telerik team
Share this question
or