Mon store ne charge pas mon combobox
bonjour çà tous,
voici mon fichier store
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| Ext.define('KitchenSink.store.prestataire',{
extend: 'Ext.data.JsonStore'
});
var store = Ext.create('Ext.data.JsonStore', {
proxy: {
type: 'ajax',
url : 'app/php/Prestataire.php',
reader: {
type: 'json',
root: 'root_valide',
totalProperty: 'totalCount'
}
} ,
fields: ['Code_Prestataire', 'Libelle_Prestataire','Telephone_Prestataire']
}
);
store.load(); |
et voici mon combobox :
Code:
1 2 3 4 5 6 7 8 9 10
| {
xtype: 'combobox',
fieldLabel: 'Prestataire',
name: 'Prestataire',
displayField: 'Libelle_Prestataire',
valueField: 'Code_Prestataire',
storePrestataire: KitchenSink.store.prestataire,
queryMode: 'local',
emptyText: 'Choisir le prestataire...'
} |
je ne comprend pas pourquoi mon combobox ne se charge pas alors que mon store lui est bien chargé !
merci