I have a little problem with combobox. I have a combobox Store which is reload using ajax after some event. After that I use myCombo.setValue() to set a default combobox selected field. It works good. Problem is when I click on the combo and Dropdown list is showing. That list automatically hide. But only on the first time, then every thing working good until I reload my form. May I show a part of my code:
store:
var ParentsStore = Ext.create('Ext.data.Store', {
autoLoad: false,
fields: ['id', 'name'],
proxy: {
type: 'ajax',
url: 'index.php?aid=parents_combostore',
reader: {
type: 'xml',
record: 'item',
idProperty: 'ASIN',
totalRecords: '@total'
}
}
});
it is reloading a store:
Ext.getCmp('userParent_combo_id').clearValue();
ParentsStore.getProxy().extraParams =
{
typ :typ['usrtyp_id']
};
Ext.getCmp('userParent_combo_id').store.load();
Ext.getCmp('userParent_combo_id').lastQuery = null;
Does somebody understand me and could try to help me?
best regards!