Hi 
I started using the awesome jqWidgets and came across a small issue, where I am sure I’m doing something wrong. Below is my code:
The url calls an asp.net web service where it gets a list of objects with ID and DriverName.
My problem is the last line…the object “item” remains undefined. What am I doing wrong please? Joe Bloggs exists in the list. I’m using the latest jqWidgets version.
Thank you!!!
var sourceDriver = {
type: “GET”,
datatype: “json”,
datafields: [{ name: ‘ID’ }, { name: ‘DriverName’ }],
url: urlGetDrivers,
cache: false,
root: ‘dataDriver’
};
//Preparing the data for use
var dataAdapterDriver = new $.jqx.dataAdapter(sourceDriver, { contentType: ‘application/json; charset=utf-8’,
downloadComplete: function (dataDriver, textStatus, jqXHR) {
return dataDriver.d;
}
}
);
// Create jqxComboDriver
$(“#jqxComboDriver”).jqxComboBox({ source: dataAdapterDriver, displayMember: “DriverName”, valueMember: “ID”, selectedIndex: 0, width: ‘200px’, height: ’25px’, theme: ‘energyblue’ });
var item = $(“#jqxComboYou”).jqxComboBox(‘getItemByValue’, ‘Joe Bloggs’);