Hi,
I have a combobox and dataAdapter. What I like to do is show a message as a single combobox item when there are too many search results and disable the selection.
renderer: function (index, label, value) {
var item = dataAdapter.records[index];
if (item != null) {
var label = item.name
if(item.id == -1){
// too many search results
$("#jqxcombobox").jqxComboBox({enableSelection:false});
}else{
$("#jqxcombobox").jqxComboBox({enableSelection:true});
}
return label;
}
return "";
}
This doesn’t seem to work. How should I implement this?
Thanks,
Raoul