dropdownlist advice

Discussion in 'ASP .Net Web Controls' started by Richard Roche, Aug 4, 2004.

  1. What the best way to make an aspnet DDL act like a window 'combo' box where user can 'auto complete' by just typing enuf to uniquely identify the entry they want. Of course currently the control move only to the first character.

    Thanks.
    --
    Richard
    Richard Roche, Aug 4, 2004
    #1
    1. Advertising

  2. Richard Roche

    Scott M. Guest

    Best way is not to do it. It would involve a trip to the server on each
    keystroke!

    "Richard Roche" <> wrote in message
    news:...
    > What the best way to make an aspnet DDL act like a window 'combo' box

    where user can 'auto complete' by just typing enuf to uniquely identify the
    entry they want. Of course currently the control move only to the first
    character.
    >
    > Thanks.
    > --
    > Richard
    Scott M., Aug 4, 2004
    #2
    1. Advertising

  3. There must be some client side java script solutions.
    --
    Richard


    "Scott M." wrote:

    > Best way is not to do it. It would involve a trip to the server on each
    > keystroke!
    >
    > "Richard Roche" <> wrote in message
    > news:...
    > > What the best way to make an aspnet DDL act like a window 'combo' box

    > where user can 'auto complete' by just typing enuf to uniquely identify the
    > entry they want. Of course currently the control move only to the first
    > character.
    > >
    > > Thanks.
    > > --
    > > Richard

    >
    >
    >
    Richard Roche, Aug 5, 2004
    #3
  4. Richard Roche

    Scott M. Guest

    Yes, client-side solutions. But not ASP.NET Web Control solutions.

    Client side, you'd need a textbox on top of a dropdown. The list of values
    in the dropdown would need to be in an array. In the onKeyPress event
    hanlder, you would check the value(s) of the textbox and then scan through
    the array looking for alphabetical matches (letter by letter). If you were
    to find one, you would then have to change the selectedItemIndex of the
    dropdown.


    "Richard Roche" <> wrote in message
    news:...
    > There must be some client side java script solutions.
    > --
    > Richard
    >
    >
    > "Scott M." wrote:
    >
    > > Best way is not to do it. It would involve a trip to the server on each
    > > keystroke!
    > >
    > > "Richard Roche" <> wrote in

    message
    > > news:...
    > > > What the best way to make an aspnet DDL act like a window 'combo' box

    > > where user can 'auto complete' by just typing enuf to uniquely identify

    the
    > > entry they want. Of course currently the control move only to the first
    > > character.
    > > >
    > > > Thanks.
    > > > --
    > > > Richard

    > >
    > >
    > >
    Scott M., Aug 5, 2004
    #4
    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. Asun Friere
    Replies:
    1
    Views:
    492
    Paul Boddie
    Aug 27, 2003
  2. Peter Hansen
    Replies:
    23
    Views:
    861
    Anton Vredegoor
    Sep 5, 2003
  3. Gerrit Holl
    Replies:
    16
    Views:
    613
    Tom Plunket
    Aug 29, 2003
  4. Asun Friere
    Replies:
    0
    Views:
    474
    Asun Friere
    Aug 28, 2003
  5. Michele Simionato
    Replies:
    2
    Views:
    381
    Jacek Generowicz
    Sep 1, 2003
Loading...

Share This Page