Posts in the "Introduction to SharePoint 2010 SandBox Solutions" series

In my previous post I explained how to create an interactive search for SharePoint 2007 lists. It’s time to take things to the next level, so let me introduce Search AutoComplete for SharePoint 2010 list (download). It gives you the same functionality (search as you type) as the previous version but it is created as SandBox solution (check my post Introduction to SharePoint 2010 SandBox Solutions for Site Collection Owners for details).

This solution is free and can be downloaded as WSP or with full source code. The solution uses following technologies: JQuery, JQueryUI and SharePoint 2010 Client OM.


Search AutoComplete for SharePoint Lists is a SandBox solution and can be deployed to any farm environment. If Sandbox solutions are disallowed for your site collection, contact your farm administrator.

  • Download and unpack solution package
  • Go to your Site Collection > Site Actions > Site Settings
  • Browse Galleries > Solutions
  • Go to Solutions ribbon tab and click Upload Solution
  • Upload the WSP package you downloaded and Activate it
  • Open a SharePoint web page and Insert a web part
    (from Custom > Search AutoComplete for Lists)


Web part needs to be configured to properly search a list on your web site.

  • Choose Edit Web Part from the web part context menu
    Edit Web Part
  • Expand Search section in the Web Part Toolpane
    Web Part Properties
  • Type the name list name in the List Name field (e.g. Contacts)
  • Type the names of list columns you want to display in Display Fields Field (e.g. [Title])
    • Surround column names with square brackets (e.g. “[FirstName] [Title], [WorkPhone”) <- internal name for LastName is Title 🙂
    • Use internal field names

The benefit of a SandBox solution

Solution like this one could be deployed via Content Editor web part, but in such case users will have to manually customize a script to work on their site. When deployed as Sandbox solution, its properties will be exposed as web part properties, and users do not need to modify the code. Further more you can use .NET to run additional stuff on the server side.

What’s next?

In next posts in this series:

  • How to deploy Search AutoComplete for SharePoint lists without Sandbox
  • How to enforce Sandbox Solution web part properties
  • How to use Search AutoComplete for Central Admin commands

Stay tuned!

Leave a Reply