Hi @softmachine2011,
Please try to set up
SortByValueField="true"
for the MultiCombo and add the following override to the page's <head>.
Does it help?
Override
Ext.net.MultiCombo.override({
setValue : function (value, doSelect) {
var me = this,
matchedRecords,
nonRecords;
if (me.sortByDisplayField || me.sortByValueField) {
value = Ext.Array.from(value);
matchedRecords = [];
nonRecords = [];
Ext.each(value, function (v) {
record = v;
if (!record || !record.isModel) {
record = me.findRecordByValue(record);
}
if (record) {
matchedRecords.push(record);
} else {
nonRecords.push(v);
}
});
Ext.Array.sort(matchedRecords, function (r1, r2) {
var v1 = r1.get(me.sortByDisplayField ? me.displayField : me.valueField),
v2 = r2.get(me.sortByDisplayField ? me.displayField : me.valueField);
if (v1 === v2) {
return 0;
}
return v1 > v2 ? 1 : -1;
});
value = matchedRecords.concat(nonRecords);
}
me.callParent(arguments);
Ext.each(this.valueModels, function (r) {
this.selectRecord(r);
}, this);
}
});