What I want to do is bind an array with changing data to a combobox.
//dataadapter
var column = new Array();
var sourceType =
{
localdata: column,
datatype: "array",
datafields:
[
{ name: 'TypeDeProtection', type: 'string' },
]
};
var dataAdapter2 = new $.jqx.dataAdapter(sourceType);
$('#jqxComboBox4').jqxComboBox({source: dataAdapter2,displayMember: 'TypeDeProtection', multiSelect: true, theme :'energyblue', width:700});
//then I Change data
$("#jqxComboBox").on('change', function (event)
{
var rows = $('#jqxgrid').jqxGrid('getdisplayrows');
for (var i = 0; i < rows.length; i++) {
var rowData = rows[i];
data[i]=rows[i]['TypeDeProtection'];
}
for (var i = 0; i < data.length; i++) {
var row = {};
row['TypeDeProtection'] =data[i];
column[i] = row;
} });
then how do I refresh data binding
this dosen’t work
$(‘#jqxComboBox4’).jqxComboBox(‘updatebounddata’);
I would alo like to store selected items before ifd theuy are still there after data is reffresehd but What event should I use