Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is a simple question to which the answer is probably just "no". Can I format the list items in the AutoCompleteExtender dropdown? I am looking to display an address and want a simple format:

Company Name
123 Bob St.
Bobville, BOB 12345

Click here[^] for an example

As the websvc simply returns a string[] and html get encoded it seems this ability is unlikely. Any alternatives to suggest to obtain the desired effect?
Posted

Here you go

Render images in autocomplete list of ASP.Net AJAX AutoCompleteExtender[^](This way you can append more text in multiple lines & with your font/color/style, etc.,)

15+ jQuery Autocomplete Plugins & Tutorials[^]
 
Share this answer
 
Comments
Chris_Green 19-Jul-11 8:16am    
I would have preferred no script but that's not bad! Cheers
Espen Harlinn 19-Jul-11 16:53pm    
Good reply, my 5
have a look at this:http://www.9lessons.info/2009/06/autosuggestion-with-jquery-ajax-and-php.html[^].

you can take inspiration from it. Server side is php, but shouldn't be difficult to convert.
 
Share this answer
 
Comments
Chris_Green 18-Jul-11 18:59pm    
Thanks but the answer I was looking for was verification that the ASP.NET AJAX Control Toolkit's AutoCompleteExtender does not support formatting of the list items as shown in the example above. I just wanted to verify this before considering alternatives.

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