DropDownList Webform question.

Discussion in 'ASP .Net Web Controls' started by James Radke, Dec 4, 2003.

  1. James Radke

    James Radke Guest

    Hello,

    I have a dropdownlist on a web page, and due to amount of items on a line, I
    am limited to setting the width of the control to a certain amount (for
    discussion say 50). What I thought would happen if the text is set to
    longer than that on the client is that the list would expand beneath the
    dropdownlist selection area when clicked, and that I would still see all the
    text while scrolling through the list to make the selection.

    But, instead the list is cut off at the width of the control.

    Is there a way to change this client-side behavior so the full width of the
    text is only displyed in the drop down scrollable portion while selecting,
    and then limited to the width number of characters for a selected item?

    Thanks!

    Jim
    James Radke, Dec 4, 2003
    #1
    1. Advertising

  2. James Radke

    MSFT Guest

    Hi Jim,

    DropDownlist control doesn't support to set the width of scrollable portion
    seperately. Its width must be same as the whole control. A posible solution
    is to use a TextBox, a button and a ListBox to simulate DropDownlist
    control.

    Luke
    Microsoft Online Support

    Get Secure! www.microsoft.com/security
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)
    MSFT, Dec 4, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. titof
    Replies:
    0
    Views:
    498
    titof
    Jul 24, 2003
  2. timmso
    Replies:
    1
    Views:
    478
    Alex Papadimoulis
    Dec 12, 2003
  3. =?Utf-8?B?bXN1aw==?=

    Using one webform to set a value on another webform

    =?Utf-8?B?bXN1aw==?=, Jul 12, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    458
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Jul 12, 2006
  4. =?Utf-8?B?Vk1J?=

    Moving value from popup Webform to main Webform?

    =?Utf-8?B?Vk1J?=, Oct 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    570
    GroupReader
    Oct 9, 2006
  5. Luqman
    Replies:
    2
    Views:
    660
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
    Apr 11, 2007
Loading...

Share This Page