I want to Modify the Default People picker properties as Shown below. I want to hide the Highlighted Columns in the below image.
Does anybody know how can I do this using C#?
I can modify it or do I have to create new one?

|
I want to Modify the Default People picker properties as Shown below. I want to hide the Highlighted Columns in the below image. Does anybody know how can I do this using C#? I can modify it or do I have to create new one?
|
||||
|
|
|
I use the folowing to create my custom dialog in C#: Try to override constructor of PickerDialog class For example:
Next override OnInit method in PickerEditor class:
In this example there are u'll see only 3 fields in people dialog. By this way you can create custom people dialog. And don't forget to add your custom control to "safecontrols" in web.config of web application |
|||
|
|
|
No idea about doing it with Object Model (C#) but you can remove the setting for a People Picker property by specifying the property name you want to clear, and using empty quotation marks for the property value. To remove a property setting from People Picker, type the following command:
For more information, see Peoplepicker-searchadforests: Stsadm property http://technet.microsoft.com/en-us/library/cc263460(office.12).aspx Note: This is applicable to SharePoint 2010 |
|||
|
|
|
Can you confirm that you can actually hide a column (like email/phone) from the People Picker search results using the setproperty stsadm command? Because TechNet specifies that the set-property command is used for changing settings of the people picker control, and doesn't mention the hiding of specific fields.
I've got two questions: Does this set-property command actually works for removing fields from the people picker? What are the property names for the values that you can remove? If this solution works, this guy is wrong ;) SharePoint 2010 - Configure People Picker columns (add/remove) Thanks in advance, Bastiaan |
|||
|
|