samedi 7 juin 2014

Pb with ComboBox in grid Editor

Hello,

I have a problem with ComboBox editing of a Cell



Code:



{
header: 'Analytique',
dataIndex: 'id_analytique',
width: 150,
renderer : function(val) {
if(Ext.getStore('Analytiques').getById(parseInt(val)))
return Ext.getStore('Analytiques').getById(parseInt(val)).data.nom;
else
return "Non renseigné";
},
editor: Ext.create('Ext.form.ComboBox', {
typeAhead: true,
triggerAction: 'all',
store: Ext.getStore('Analytiques'),
queryMode: 'local',
readOnly: false,
forceSelection: true,
displayField: 'nom',
valueField: 'id'
})
}

The store is loaded OK (I see it in debug)

The rendered is OK (prouve that store is loaded)

The editor have no choice in ComboBox

With a simple array in store : ComboBox is OK

Why Ext.getStore() don't work for editor ? Can somebody help me please ?





Aucun commentaire:

Enregistrer un commentaire