Dec 12, 2012, 9:27 AM
[CLOSED] Multi select in Multicombo in js
Hi guys,
I have a multicombo same https://examples2.ext.net/#/Form/ComboBox/MultiCombo/ (simple multicombo) in my form.
in a gridpanel, i have a string containting string with textvalue of the multicombo.
When i select a row, i would like select all itemValue in multicombo present in my row.
Page.aspx
Page.js
How multi-select in js without all selected ?
Regards
Yoann
I have a multicombo same https://examples2.ext.net/#/Form/ComboBox/MultiCombo/ (simple multicombo) in my form.
in a gridpanel, i have a string containting string with textvalue of the multicombo.
When i select a row, i would like select all itemValue in multicombo present in my row.
Page.aspx
<ext:MultiCombo ID="Multi" runat="server" MultiSelect="true"
Cls="donneesAlert" ReadOnly="true">
</ext:MultiCombo>
Page.js
if (values[6] != '') {
var listeAddresse = values[6].split(',');
for (i = 0; i < Ext.getCmp('Multi').store.data.items.length; i++) {
for (j = 0; j < listeAddresse.length; j++) {
if (Ext.getCmp('Multi').store.data.items[i].data.field2 == listeAddresse[j] || ' '+Ext.getCmp('Multi').store.data.items[i].data.field2 == listeAddresse[j]) {
Ext.getCmp('Multi').select(Ext.getCmp('Multi').store.data.items[i]);
}
}
}
}
But i can't select only one item together.How multi-select in js without all selected ?
Regards
Yoann
Last edited by Daniil; Dec 12, 2012 at 11:52 AM.
Reason: [CLOSED]