Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Im making a webpart where a user should be able to add other users from active directory, without being able to know their full name etc. The field should be autocompleted in some way (like googles searchfield for example). I have seen examples of this on ordinary websites but will I be able to do this on a custom sharepoint webpart and how do I do it?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

This sounds like a case for the Sharepoint PeopleEditor control. By your description I think it will satisfy all your requirements.

Karine Bosch has a nice blog post about the user control here

Good luck

share|improve this answer
    
This looks very promising. I will try to implement this in my webpart. I´ll get back to you. :) –  Skaft Mar 27 '13 at 15:28
    
Your solution worked. Thanks mate! –  Skaft Mar 27 '13 at 18:29
add comment

I see you tagged this question with jQuery and ajax, so I assume you want to do this client side (on the browser)... IF you are open to using SPServices library (http://spservices.codeplex.com/), I have created a People Picker widget that you can use in your custom UI... More info. on it here: http://purtuga.github.com/SPWidgets/

share|improve this answer
    
Sounds interesting. I will look into it. –  Skaft Apr 9 '13 at 9:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.