Hello,
I am trying to use the renderSelectedItem with the checkAll and it is giving one number less in the renderSelectedItem. The example is below.
var source = [
“Affogato”,
“Americano”,
“Bicerin”];
// Create a jqxComboBox
$(“#jqxComboBox”).jqxComboBox({
source: source,
theme: ‘energyblue’,
width: ‘200px’,
height: ’25px’,
checkboxes: true,
renderSelectedItem: function(index, item) {
var label = 0;
var items = $(‘#jqxComboBox’).jqxComboBox(‘getCheckedItems’);
if (items != null) {
label = items.length;
}
return label + ‘ ‘ + ‘selected’;
}
});
$(“#jqxButton”).jqxButton({
theme:’energyblue’
});
$(“#jqxComboBox”).jqxComboBox(‘checkAll’);
The example should show the result as 3 selected, but it is showing 2 selected.
The same is available as test in jsfiddle http://jsfiddle.net/santu555/NsN9B/1/
Thanks
Santosh