Project DescriptionTaking my inspiration from Jan Tielen's control http://www.codeplex.com/smarttools/Wiki/View.aspx?title=Autocomplete%20Text%20Field, I decided to build my own with the difference that
- The field is a lookup field (derived from SPFieldLookup)
- You don't need to install the ASP.NET AJAX Framework
I did it that way because in some environments, it's often tricky to change the production system by installing the AJAX framework and/or some service packs. This component embedds "manual" AJAX calls towards the SharePoint Web Service so that you don't need to install anything special to make it working.
Here are a few screenshots illustrating how to use the component. You just add the field to a list as you would with a standard SharePoint field
When creating a list item, you use the textbox to start typing your keyword, the AJAX query (performed after each typing) returns maximum 10 relevant items.
Update in V2 The returned list is a dynamic HTML table instead of a HTML Select tag
Additional Notes:
Note that this field behaves the same way than the standard SharePoint lookup field except that:
- It cannot be multi-valuated
- the target lookup field is frozen and always the Title field