Hi, I have a strange issue with autocomplete. My list contains first and last names separate by a space.
John Frankinson
Pete Johnson
Clair Franklyn
If you start typing “Jo”, the autocomplete will select Pete Johnson and highlight Jo from the last name. Even when you type “John “, it will not select John Frankinson. In fact the autocomplete only works on the last name, it never selects anything from the first word in the list.
This is my code:
var source =
{
datatype: "json",
datafields: [
{ name: 'ClientName' },
{ name: 'ClientId' }
],
url: url,
async: true
};
var dataAdapter = new $.jqx.dataAdapter(source);
// Create a jqxComboBox
$("#jqxClientName").jqxComboBox({
selectedIndex: 0,
theme: 'energyblue',
autoComplete: true,
searchMode: 'containsignorecase',
source: dataAdapter,
displayMember: 'ClientName',
valueMember: 'ClientId',
width: 200,
height: 25
});
I also tried searchMode: ‘startswithignorecase’. This also only matches the last name, not the first.
Any suggestions please?