How can I add data to the lookup for autoFill? I am testing the data.name_startsWith for my php but need to send a company as well. I have defined a Company Object at the top of my Javascript. In the field Contact which I am doing a autoFill lookup on cellbeginedit I set the Company value. I am trying to use this to filter contacts based on the Company column….
I would Appreciate any help….
var Company = new Object();
…..
cellbeginedit: function (row, datafield, columntype) {
Company.value = $(‘#jqxgrid’).jqxGrid(‘getcellvalue’, row, “CompanyID”);
},
var ContactSource = {
datatype: “json”,
datafields: [
{ name: ‘ID’ },
{ name: ‘Contact’ }
],
id: ‘id’,
url: ‘../Contact/ContactJSON.php’,
async: false,
data: {
featureClass: “P”,
style: “full”,
maxRows: 12
}
};
var ContactDataAdapter = new $.jqx.dataAdapter(ContactSource, {
formatData: function (data) {
data.name_startsWith = ContactSearch;
return data;
}
});