Thursday, June 18, 2009 8:36 AMI am inserting PeopleEditor sharepoint web control dynamically as
PeopleEditor peopleEditor = new PeopleEditor(); peopleEditor.MultiSelect = false; peopleEditor.Attributes.Add("runat", "server"); peopleEditor.ID = "TravellerPicker" + (i + 1).ToString(); cell2.Controls.Add(peopleEditor);This inserts the PeopleEditor control in the page.
But when typed in an name and clicked on Check Names, a script error is thrown. "There was an error in the callback."
Address book link works fine.
If anybody knows how to fix this, please help me.
Wednesday, August 12, 2009 4:08 PMHi
Did u fin any resolution for this.
Thursday, September 17, 2009 7:09 PMThis works,
cell = new TableCell();
objEditor = new PeopleEditor();
objEditor.ID = "pEditor"
objEditor.PlaceButtonsUnderEntityEditor = true;
objEditor.AllowEmpty = false;
objEditor.SelectionSet = "User,SecGroup,SPGroup";
objEditor.MultiSelect = false;
objEditor.AllowTypeIn = true;
//cell.EnableViewState = true; If enableview state (for cell, peopleeditor, row or table ) is turned on for any of the container it returns the "callback" exception in dynamically added peopleeditor control.
Please post if you find something better.
Wednesday, February 22, 2012 3:23 AM
please check here:
for the detail info about peopleeditor control check below link
MCTS,MCPD Sharepoint 2010. My Blog- http://www.sharepoint-journey.com/
If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful
- Edited by Devendra Velegandla Monday, December 17, 2012 3:34 AM
Thursday, October 11, 2012 1:37 PM
did any one find the solution for this?