All I can say is WOW. If something as simple as the PeopleEditor takes me a week to implement and that is with having two Microsoft Premier Support cases open on it, than once I figure it out its worth writing an article on it.
My business requirement:
- I need a grid view to have data bound to it, but the data won’t come until after a drop down list selects what data source it needs to use.
- The data source is created using a generics list object in the code behind.
- The PeopleEditor object must be an object where people can enter just a single name.
- The gridview can range in size
- It MUST be in an AJAX Update Panel
See the example below of what it should look like once it is finished.
The problems I was facing… …And the solution…
- JScript Error: Microsoft JScript runtime error: The value of the property ‘PickerAdjustHeight’ is null or undefined, not a Function or object.
Solution: Add the following line to the control’s front end source above the ScriptManger
<script type="text/javascript" src="/_layouts/entityeditor.js"></script> - JScript Error: Microsoft JScript runtime error: Thevalue of the property ‘StoreOldValue’ is null or undefined, not a Function object
Solution: Add the following line to the control’s front end source above the ScriptManger
<script type="text/javascript" src="/_layouts/entityeditor.js"></script> - Error with the People Editor:
The target ‘ctl00$m$g_1c88d7ea_ab45_4c52_92a6_d0402a2ec996$ctl00$GridView1$ctl04$PeopleEditor2’ for the callback could not be found or did not implement ICallbackEventHandler.Solution: The solution for this is much more complicated, I will quickly try to explain what the problem is and how to resolve it.
First you have to understand that you can’t just add the PeopleEditor control to your GridView in the WYSIWYG editor, in fact, its not even in the tool box. You must instead add it in code behind on each row that exists.
When you start out with an empty grid, then populate it within in runtime, you will notice there are some missing javascript functions that the gridview uses. So you must first some how find a way to get those functions in the page when it renders. But there is only one path that I have found that allows you to do it. I have layed it out in VISIO so you can see what it looks like.
This solved my issue with this, and here is the samples. If anyone wants a copy of my solution, please enter a post on it with your email, and I would be happy to send it to you.
Bill.
This is very interesting .I wonder if I also can get the Ajax part working
Can you send me the source code
Many thanks upfront !!!
I just sent it to you.
I need the same thing. I will be glad if you send source code to me
Hi Bill, Good solution ….I have the same problem . I need to use people editor in gridview control.
Could you please send me the source code of the solution.
thanks in advance
Can you please share with me the source code for “Using the SharePoint PeopleEditor in a GridView”
Can you send me the source code?
Thanks!!!
Hello, I just sent it to you.
Hi Bill,
Could you please send me the source code of the same.
Also ,i have a query.
I am trying to find my SharePoint people editor control which is placed inside the Grid view.
Thanks in advance.
Regards,
Geeta Soni
Could you send me the source code, please?
Thanks.
Sent.
Could you also send me the source code? I’m having similar issues using a Telerik control (TreeList) but think I could benefit from seeing your solution. Thanks!
Hi ! Could you send me the source code, please?
Thanks.
Could you send me the source code, please?
Thanks.
can you send me source code please?
Good article!
Hey, nice article. Could you also send me the source code please? I’m having a similar issue with the People Editor inside an UpdatePanel. Thanks.
Hi ! Could you send me the source code, please?
Thanks.
Hi ! Super article !!!!!
Could you send me the source code too, please?
Thanks.
Hi ! Can you send me the source code, please?
Thanks much.
Hi..
Can yoy please send me the source code.
Thanks.
hi…
can you please send me the source code too, please?
Thanks a lot!
Very nice article!
Could you send me the source code too, facing same issue.
Thanks a lot
Hi !
excellent solution!, could you send to me?
Thanks.
Hi,
Same error is coming for me. I have added people editor control in header template. Can I get your code to see how you solved it?
Thanks
Sanjivani
Hi, Could you also send me the source code please? I’m having a similar problem with the People Editor inside an UpdatePanel. Thank you.
hey hi bill,
nice article on PeopleEditor….
Could you email me the project….
Hi, I’m having a similar problem.
Could you send me the source code please?
Thank you.
Hi, it would be great to send me the source code.
Thank you
Hi can you publish the code that adds the people editor or send me the solution. thanks v much.
Thanks, excellent post.
Hi,
need ur code
Thanks in advance
Could you send me source code?
Hi ! Could you send me the source code, please?
Thanks.
Hi,
It’s really nice Post,Please send me Source code.
Thanks in Advance
Please send me the source code please. I am facing the same problem
Please send me the source code. I am doing a user/page permission on grid and need your solution. Thank you
Please send me the source code please.
Hello Bill,
after endless hours of searching I came along your post.
could you please send me the source code to solve the ICallbackEventHandler problem.
thanks in Advance
Hi Bill,
I have problem with peopleeditor.
Can you give me your solution.
Thanks a lots.
Hi Bill, I have the same problem with a people editor, can you sand me the solution.
thanks in advance.
Can you please share the code.
Hi,
have same issue to people editor along with update panel, could you pls. share the source.
Awesome article,I also encounter this issue, could you send the code to me? Many thanks.
Hi source code plz?
This is cool :) Could you please send me a code? Thanks.
Hi Bill
Can you share you code please, I’ve been pulling my hair out with this today. I want to use the people picker control with jqgrid
Thanks
Alex
Nice article,Can you pls. share the code?
This is very interesting.
Can you please send me the source code.
Many thanks in advance.
Can i have a copy of this project please?
Thank you in advance
Thank you very much for this,
Im having the same problems as you describe.
Can you please send me the source code?
Hi ,
This is very interesting.
Can you please send me the source code.
Many thanks in advance.
Thanks,
Chidambaram
Hi,
this is very interesting.
i´m standing in front of the problem, when i add a peopleeditor dynamic i get a error (ICallbackEventHandler).
Can you send me your source code?
Thanks,
Ic3mAn
Thanks a Ton! Solved a Big Issue.
hi, this is awsome! could you send me the code?
Hey!
Im trying to do the same and got stuck for a while, and then i found this blog.
Could you please send me the code?
Thanks,
Juan Manuel
I need the same thing. I will be glad if you send source code to me
Thank you !!!
Hi Bill, Very Good solution ….I have the similar problem . I need to use people editor in repeater control.
Could you please send me the source code of the solution.
thanks in advance!
Could you please send me the code?
Thanks,
VladanO
Nice post, can you please send the source?
please send me the source
Nice post!
can you send me the code please…. Thanks!
Also i will very happy to see your code,
Can you please sent it also to me?
Thanks.
Gab
This p-pickin peoplepicker is a real headache. I would love to see your code for this.
please send me the source
Pingback: Curia Damiano blog | SharePoint: how include the PeopleEditor control in a UpdatePanel
Hi. Very nice article. Can you share the source code with me.
I’d love a copy of the source. Thanks!
I would be interested in seeing the source code for this. Thank you!
-Mark
Please send to mark.cribb@outlook.com… thanks!
Very nice article,Please send to me code.
Thank you!
Just what I needed… Can you send me the code?
I am having the same issue with people picker in update panel, can you send me the source please
Can you please send me the code
you gave the logical solution. pelase provide me the solutions
I am having the same issue with people picker in update panel, can you send me the source please
Sadly, I don’t believe Brad looks at this anymore. He is obviously moved on to bigger and better things. His last response was nearly 4 years ago.
I am having the same issue with people picker in update panel, can you send me the source
i have the same in infopath form.can you send me the source
Hi Bill,
Can you please email me your code? i am having similar sort of issue.
Hi Bill,
Can you please email me your code? i am having similar sort of issue.
Would you, please, email me the code? Having similar issue.
Here is the code: https://dl.dropboxusercontent.com/u/41261911/People%20Editor.zip
All, here is the code.
https://dl.dropboxusercontent.com/u/41261911/People%20Editor.zip
Sincere thanks Bill. Better late than never. :)
Hi Bill,
Can you plz send me the C# code for using a sharepoint people Editor inside a gridview.
Hi Bill,
Can you please send me the c# code ?
can you please send me the code?
This is nice .I also need to implement this.Could you please send me the source code.
Many thanks in advance!!!!
hi ,
could you please send me the code?
Thanks