Ajax Autocomplete Extender style

Discussion in 'ASP .Net' started by Radu, Oct 9, 2008.

  1. Radu

    Radu Guest

    Hi.

    I have an autocomplete extender

    <style type="text/css">
    .list2 {
    border: 1px solid DarkGray;
    list-style-type: none;
    margin: 0px;
    background-color: #FFF;
    text-align: left;
    font-size:small;
    vertical-align:middle;
    color: black;
    }

    ul.list2 li {
    padding: 0px 0px;
    }

    .listitem2 {
    color: #000;
    }

    .hoverlistitem2 {
    background-color: DarkGray;
    }
    </style>

    <ajaxToolkit:AutoCompleteExtender
    ID="AutoCompleteExtender1"
    TargetControlID="txtFirstName"
    MinimumPrefixLength="3"
    CompletionInterval="500"
    ServicePath="AutoComplete.asmx"
    ServiceMethod="GetCompletionList_FN"
    CompletionSetCount="20"
    DelimiterCharacters=";,:"
    EnableCaching="true"
    CompletionListCssClass="list2"
    CompletionListItemCssClass="listitem2"
    CompletionListHighlightedItemCssClass="hoverlistitem2"
    runat="server">
    </ajaxToolkit:AutoCompleteExtender>

    It works fine, but it has two problems:

    a. No matter what I do, the lines apparently have a one-line vertical
    spacing (i.e one blank line between the lines).
    b. Even if the property is CompletionSetCount="20", it returns all the
    entries matching the criteria, even if 500, and there is no VScrollbar
    on the list part of the extender, so the user has to scroll the entire
    page to see, say, item number 453.

    I guess I'm doing something wrong, but what ? I have tried all day to
    fix this. Could you help, please ?

    Thanks a lot.
    Alex
     
    Radu, Oct 9, 2008
    #1
    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. GMartin
    Replies:
    0
    Views:
    399
    GMartin
    Nov 20, 2006
  2. =?Utf-8?B?Ym9iYnk=?=

    AutoComplete extender

    =?Utf-8?B?Ym9iYnk=?=, Sep 13, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    675
    densial
    Sep 13, 2007
  3. Stefan Filip

    AJAX Autocomplete Extender problem

    Stefan Filip, Nov 21, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    5,287
    yuriy.loginov
    Aug 28, 2012
  4. JM_newsgroups
    Replies:
    0
    Views:
    701
    JM_newsgroups
    Jun 12, 2008
  5. jonefer
    Replies:
    0
    Views:
    221
    jonefer
    Jun 14, 2007
Loading...

Share This Page