Have a code that searches group names using the people picker app. I write the same code one on default.aspx and the other in a client webpart page.But, both show results quiet differently. For example i would want the expand and shrink functionality of the input box in a Default.aspx work the same way in a client webpart.aspx page as well.
My code is as follows:
Default/ClientWebpart.aspx
a div element: id="peoplePickerGroupDiv" style="height: 20px"
Script file:
$(document).ready(function () {
initializePeoplePickerForGroup();
});
function initializePeoplePickerForGroup() {
// Create a schema to store picker properties, and set the properties.
var option = {};
option['PrincipalAccountType'] = 'SPGroup';
option['SearchPrincipalSource'] = 15;
option['ResolvePrincipalSource'] = 15;
option['AllowMultipleValues'] = true;
option['MaximumEntitySuggestions'] = 50;
option['Width'] = '280px';
SPClientPeoplePicker_InitStandaloneControlWrapper('peoplePickerGroupDiv', null, option);
}
Could anyone guide me to known why there is a difference and how could i possibly solve it?