Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I am using an auto-complete extender to get suggestion of records.I have used web service for it.Now when I type a letter it gives me a list of 200 records.I want to display only 10 records and rest of the records in a type of scroll-bar, as it occupies my entire page in showing those 200 records at once ruining the entire design of page.

Thanks in advance.
Posted
Updated 26-Jun-14 20:40pm
v2
Comments
Mitul Birla 30-Jun-14 0:34am    
Thanks guys 4 ur replies it helped

Hi,

 There is a property in the auto-complete extender "CompletionSetCount". Set it to 10 and it will display only 10 records.

 Also in the code behind the service method that is being executed you need to pass the count. for eg:10.

Hope this helps.

Regards,
Dinesh Kumar.V.
 
Share this answer
 
v2
Hi
Please check below link, it will help you

http://www.asp.net/AjaxLibrary/AjaxControlToolkitSampleSite/AutoComplete/AutoComplete.aspx[^]

http://www.asp.net/ajaxlibrary/act_autocomplete_simple.ashx[^]


let me know in case of any query

Thanks
Gaurav Dhol
Skype : dhol.gaurav
 
Share this answer
 
Hi Please

pass parameter ServiceMethod="GetCompletionList(10)"

set CompletionSetCount="10"

ASP.NET
<ajaxToolkit:AutoCompleteExtender
    runat="server"
    ID="autoComplete1"
    TargetControlID="myTextBox"
    ServiceMethod="GetCompletionList(10)"
    ServicePath="AutoComplete.asmx"
    MinimumPrefixLength="2"
    CompletionInterval="1000"
    EnableCaching="true"
    CompletionSetCount="10"
    CompletionListCssClass="autocomplete_completionListElement"
    CompletionListItemCssClass="autocomplete_listItem"
    CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
    DelimiterCharacters=";, :"
    ShowOnlyCurrentWordInCompletionListItem="true">
       
</ajaxToolkit:AutoCompleteExtender>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900