开发者

SharePoint:People Picker is not working inside the Ajax TabPanel

开发者 https://www.devze.com 2023-03-08 21:22 出处:网络
Is there any resolution to use SharePoint:PeoplePicker Inside the Ajax TabPanel? I am developing visual webpart for making Form and form have ma开发者_如何学编程ny tabs, so i need SharePoint:PeoplePic

Is there any resolution to use SharePoint:PeoplePicker Inside the Ajax TabPanel? I am developing visual webpart for making Form and form have ma开发者_如何学编程ny tabs, so i need SharePoint:PeoplePicker inside the Panel.

Thanks in advance, if any one know how it is possible


This is how I did it in MOSS 2007 and SmartPart(visual webpart equivalent in 2007) to place a people picker control in a ajax panel

1) Place a ajax panel on aspx page (updatepanel or other similar controls) 2) Create a peoplepicker control in the page load event in the code behind. Use Microsoft.SharePoint.WebControls.PeopleEditor class. An example in vb.net:

 objEditorSearchHistory = New PeopleEditor()
 objEditorSearchHistory.PlaceButtonsUnderEntityEditor = True
 objEditorSearchHistory.ID = "pplEditorSearchHistory"
 objEditorSearchHistory.AllowEmpty = False
 objEditorSearchHistory.SelectionSet = "User,SecGroup,SPGroup"
 objEditorSearchHistory.MultiSelect = False
 objEditorSearchHistory.Width = Unit.Pixel(150)

3) Add the people picker control to the panel (panel.controls.Add(people picker)

0

精彩评论

暂无评论...
验证码 换一张
取 消