Is there a way to default the value to checked when the USED field in the datasource is = TRUE either as the drop down is built or by looping through after?
var IncCodeurl = "WebServices/OriasWcfService.svc/LookupIncCodeCAPAList?CAPAID=" + selectedCAPAID + "&IncID=" + selectedModuleItemNumberStr + "&LPID=" + vLPID; //pass 0 for capaid on add new, but this is edit
var IncCodeListsource = {
datatype: "json",
datafields: [
{ name: 'CodeDetailsID' },
{ name: 'GroupDescription' },
{ name: 'CodeDescription' },
{ name: 'USED' }
],
id: 'CodeDetailsID',
url: IncCodeurl,
async: false
};
var IncCodeListdataAdapter = new $.jqx.dataAdapter(IncCodeListsource);
$("#jqxWidget_IncCodeList").jqxDropDownList({ width: 775, source: IncCodeListdataAdapter, displayMember: "CodeDescription", valueMember: "CodeDetailsID", checkboxes: true, checked: true });
var IncCodeitems = $("#jqxWidget_IncCodeList").jqxDropDownList('getItems');