Items missing when scrolling lookup, but available in type search
Posted: 08 Aug 2016
On a 2 part lookup list of 77 items, when I scroll down the list I sometimes cannot see some items listed, however when I start typing in part of the item text, it appears on the list. This is making the experience difficult for the users - is there anything that can be done please?
(Using Office365/Plumsail lookups)
Request items:
function (term, page) {
if (!term || term.length == 0) {
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$orderby=Created asc&$top=5";
}
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$orderby=Title&" +
"$filter=startswith(Project_x0020_Number, '" + encodeURIComponent(term) + "') or " +
"startswith(Title, '" + encodeURIComponent(term) + "') or " +
"startswith(Client_x0020_ID, '" + encodeURIComponent(term) + "')&$top=5";
}
Item format:
function(item) { return '<span class="csl-option">' + item["{LookupField}"] + '</span>' }
(Using Office365/Plumsail lookups)
Request items:
function (term, page) {
if (!term || term.length == 0) {
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$orderby=Created asc&$top=5";
}
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$orderby=Title&" +
"$filter=startswith(Project_x0020_Number, '" + encodeURIComponent(term) + "') or " +
"startswith(Title, '" + encodeURIComponent(term) + "') or " +
"startswith(Client_x0020_ID, '" + encodeURIComponent(term) + "')&$top=5";
}
Item format:
function(item) { return '<span class="csl-option">' + item["{LookupField}"] + '</span>' }