Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

People Picker in ASP.NET MVC 4 provider-hosted app for SharePoint

$
0
0

How can I use the client side people picker control in a provider hosted app for SharePoint?  Specifically one that is using ASP.NET MVC 4?

There is an exampleon MSDN on how to use such a control with SharePoint-hosted apps, even though the article title includes the words "Apps for SharePoint", which I assume might mean that there is a way that it could be used in other types of apps for SharePoint.  That is, provider-hosted apps.

I have referenced with script tags all the required JavaScript files, but presumably it is going to need to be given a client context, which I will have to have generated as some point with help from the TokenHelper.cs file.

Is there a way to pass this in as an option (it seems to take a dictionary of options for other aspects of the control, such as if multiple people can be selected, size of the control and so on)?

Any ideas?  Or am I going to have to make something up myself?

Thanks,
Richard


Viewing all articles
Browse latest Browse all 8089

Trending Articles