bindStore() is suitable for changing data only provided that its fields are the same.
Reference : http://ift.tt/1ubPebU
I need to destroy some members.Here is the solution.
Ext.destroyMembers(combobox, 'displayTpl');
combobox.displayTpl = Ext.create('Ext.XTemplate',
'<tpl for=".">' +
'{[typeof values === "string" ? values : values["' + combobox.displayField + '"]]}' +
'<tpl if="xindex < xcount">' + combobox.delimiter + '</tpl>' +
'</tpl>'
);
Ext.destroyMembers(combobox, 'picker');
Set displayfield of combo and binding its store dyanamically
Aucun commentaire:
Enregistrer un commentaire