The following works fine. It binds the data and builds my jqxcombobox:
$("#btnAdd").on('click', function () {
// bind data to available records
var _source = new $.jqx.dataAdapter ({
url : "data.cfc?method=getAvailableRecords"
,datatype: "json"
,datafields:
[
{name: 'id'}
,{name: 'sName'}
]
});
$("#jqxCombo").jqxComboBox({
source: _source
,theme: 'classic'
,multiSelect: true
,width: 400, height: 50
,displayMember: 'sName'
,valueMember: 'id'
});
});
However, when I add the checkboxes property and set it to true, it does not bind the data the first time meaning, if the user clicks the btnAdd button a second time, the combobox data is bound to it.
$("#jqxCombo").jqxComboBox({
source: _source
,theme: 'classic'
,multiSelect: true
,width: 400, height: 50
,displayMember: 'sName'
,valueMember: 'id'
,checkboxes: true
});
Any suggestions?
Thanks.