Unanswered Dynamically Added PeopleEditor web control Check Names error

  • Thursday, June 18, 2009 8:36 AM
     
      Has Code
    I 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.

All Replies

  • Wednesday, August 12, 2009 4:08 PM
     
     
    Hi
    Did u fin any resolution for this.


    sharepoint
  • Thursday, September 17, 2009 7:09 PM
     
     
    This 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.Controls.Add(objEditor);                  
                        //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.
                        row.Cells.Add(cell);

    Please post if you find something better.
    stevee
  • Wednesday, February 22, 2012 3:23 AM
     
     

    hi,

    please check here:

    http://www.sharepoint-tips.com/2007/10/using-sharepoint-people-picker.html

    for the detail info about peopleeditor control check below link

    http://karinebosch.wordpress.com/sharepoint-controls/peopleeditor-control/


    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


  • Thursday, October 11, 2012 1:37 PM
     
     

    did any one find the solution for this?