Привет, У меня возникли проблемы с ext JS. Я заселяю одну комбо из другой. В первый раз, когда я выбираю элемент из кулачного комбо, он заполняет второй (меню) < Я выбираю что-то из второго, и я буду заполнять третий, но когда я сменил первый комбо снова, он очистит вторую комбинацию, но если я щелкнул по нему, я получу эту ошибку:ExtJS this.store.getCount после заполнения комбо
"Error: this.store.getCount is not a function Source File: .../Presentation/Lib/Js/ext-all.js"
Есть ли какие-либо вопросы, почему это происходит?
спасибо!
{
xtype : 'combo',
store : cmb_sistemas,
hiddenName : 'id_sistema',
allowBlank : false,
mode : 'local',
fieldLabel : 'Sistemas',
disabled : true,
name : 'sistemas',
id : 'sistemas',
anchor : '90%',
displayField : 'sistema',
triggerAction: 'all',
emptyText: 'Select system',
editable : false,
valueField : 'id',
listeners : {
select: function(){
idSistema = this.getValue();
nombreSistema = this.getRawValue();
cmb_menu = getMenu(idSistema);
menu = Ext.getCmp("menus");
menu.store.removeAll();//rdiaz
menu.clearValue();
menu.store = cmb_menu; //alert("sist: "+this.store.getCount());
menu.enable();
}
}
},
{
xtype : 'combo',
store : [['0', 'Select']],
hiddenName : 'id',
valueField : 'id',
mode : 'local',
allowBlank : false,
fieldLabel : 'menu',
disabled : true,
triggerAction: 'all',
emptyText : 'Seleccione un menu',
editable : false,
name : 'menus',
id : 'menus',
anchor : '90%',
displayField : 'menu',
listeners : {
select: function() {
selectedMenu = this.getValue();
cmb_items = getItemsMenu(selectedMenu, idSistema);
items = Ext.getCmp("items");
items.clearValue();
items.store = cmb_items; //alert("menu: "+this.store.getCount());
items.enable();
}
}
},
Это подействовало! Большое спасибо! –
Нет проблем. Отметьте ответ как ответ, пожалуйста. – sha