This project has moved and is read-only. For the latest updates, please go here.

AutoComplete in Visual Webparts

Aug 23, 2011 at 8:04 AM

Is it possible to use the SpServices Autocomplete function in a visual Webpart, which i want to develop? If yes, can someone help me and show me a little example




Aug 26, 2011 at 8:04 PM


If you're building a custom Web Part in .NET, you will need to include a reference to the .js files and also generate markup which is consistent with what the SPAutocomplete function looks for in standard list forms.


Sep 13, 2011 at 6:00 AM

Thanks sympmarc!


I know the first thing with the js file, but the second one? Can you give me a small example?


Sep 13, 2011 at 3:25 PM

You'll need to inspeact the DOM for a "normal" Single line of text column to see how it is rendered and also look at how the SPautocomplete function manipulates it.

Alternatively, you might want to look at the more generic autocomplete function in jQueryUI and build with that.