Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Drop down list with vertical scrollbars

  • 30-11-2007 10:25am
    #1
    Registered Users, Registered Users 2 Posts: 4,114 ✭✭✭


    I have come across something in ASP.NET that has really amazed (and irritated) me: the vertical scrollbar on the drop down list control cannot be re-sized, it stays the same height as the amount of items that are to be displayed.
    Please don't suggest entering a "height" attribute as I have done so already to no effect (makes you wonder what the point of it is so). I have tried using a div as well; no good.
    I have a drop down list on my page that displays all the counties in Ireland but it looks terrible as it displays them all at once when you click on it, going from the top of the screen to the bottom:
    Page before drop down is clicked:
    http://xs.to/xs.php?h=xs121&d=07485&f=scrollbar_prob_2.png

    Page after drop down is clicked:
    http://xs.to/xs.php?h=xs321&d=07485&f=scrollbar_prob_4.png

    I have seen an example of what I want, which is the Ajax CascadingDropDownList control but that only works in conjunction with an ASP drop down list control (ie it is populated by what is selected from the ASP drop down list control):
    http://xs.to/xs.php?h=xs121&d=07485&f=scrollbar_fixed.png

    I could change it to an ordinary List box control but that doesn't look as good.
    Is there a drop down with vertical scrollbars that can be created in javascript?

    Edit; I think I've found a solution in a third party control by a company called Telerik:
    http://www.telerik.com/products/aspnet/controls/combobox/overview.aspx


Advertisement