this.el.dom 为空,或者不是对象

[code="js"]
var alarmCategoryStore = new Ext.data.JsonStore({
id : 'ef_alarmCategoryStore',
autoLoad : true,
root : 'category',
url : 'alarmcategory.do',
baseParams : {
method : 'getAlarmCategory'
},
fields : [{
name : 'categoryName',
mapping : 'categoryName'
}, {
name : 'ALARM_CATEGORY_ID',
mapping : 'alarmCategoryId'
}]
});

var alarmCategory = new Ext.ux.form.LovCombo({
    editable : false,
    id : 'ef_alarmCategory',
    name : 'ALARM_CATEGORY_ID',
    width : 250,
    hiddenName : 'ALARM_CATEGORY_ID',
    maxHeight : 200,
    fieldLabel : 'Alarm Category',
    labelSeparator : '',
    store : alarmCategoryStore,
    // value : 'all',
    displayField : 'categoryName',
    valueField : 'ALARM_CATEGORY_ID',
    triggerAction : 'all'
        // ,mode:'local'
    });

var TopicRecord = Ext.data.Record.create([{
            name : 'categoryName',
            mapping : 'categoryName'
        }, {
            name : 'ALARM_CATEGORY_ID',
            mapping : 'alarmCategoryId'
        }]);
var myNewRecord = new TopicRecord({
            categoryName : 'all',
            ALARM_CATEGORY_ID : 'all'
        });
alarmCategoryStore.on('load', function() {
            this.insert(0, myNewRecord);
            if (settingJson != undefined) {
                if (settingJson.setting.ALARM_CATEGORY_ID_OPER == "ANY") {
                    Ext.getCmp('ef_alarmCategory').selectAll();

// alarmCategory.selectAll();
// var checkValue = alarmCategory.getCheckedValue()
// .substring(0, 3);
// alarmCategory.deselectAll();
// alarmCategory.setValue(checkValue);
// Ext.Msg.alert('ok',alarmCategory.getCheckedValue());//.substring(4,alarmCategory.getCheckedValue().length)
}
}
});
[/code]
在ie上出现了this.el.dom为空或者不是对象,好像ff 3.0.(debug)1.3上也会这样
主要是在这里注释这里,我debug时store是有数据的,
我现在是在1.4里没问题,能不能告诉我这是为什么?

[b]问题补充:[/b]
从上面的代码看,是已经初始化了,而且执行这句的时候是在监听load时执行的,
[b]问题补充:[/b]
ff 3.0.(debug)1.3上也会这样(this.el.dom 不是对象)
ie上也是(不是对象)
ff3.5,debug1.4就不会
[b]问题补充:[/b]
我的是2.2

store不要autoload,然后再combo的load事件里面调用store.load()

执行这句的时候,Ext.getCmp('ef_alarmCategory').selectAll();

控件是否已经初始化完毕?

从代码上我看不出已经渲染完毕.

load是异步的,可能快也可能慢.

你报错是哪句? firebug的报错是?

可能是firebug版本的问题导致吧

我在IE/FF里面测试了都没问题.

ext3.0

[code="java"]Ext.onReady(function(){
Ext.BLANK_IMAGE_URL = '/images/s.gif';
Ext.chart.Chart.CHART_URL = '/js/extjs/3.0/resources/charts.swf';
Ext.QuickTips.init();
var alarmCategoryStore = new Ext.data.JsonStore({
id : 'ef_alarmCategoryStore',
autoLoad : true,
root : 'category',
url : 'test.json',
baseParams : {
method : 'getAlarmCategory'
},
fields : [{
name : 'categoryName',
mapping : 'categoryName'
}, {
name : 'ALARM_CATEGORY_ID',
mapping : 'alarmCategoryId'
}]
});

var alarmCategory = new Ext.ux.form.LovCombo({
editable : false,
id : 'ef_alarmCategory',
name : 'ALARM_CATEGORY_ID',
width : 250,
hiddenName : 'ALARM_CATEGORY_ID',
maxHeight : 200,
fieldLabel : 'Alarm Category',
labelSeparator : '',
store : alarmCategoryStore,
// value : 'all',
displayField : 'categoryName',
valueField : 'ALARM_CATEGORY_ID',
triggerAction : 'all',
// ,mode:'local'
renderTo:Ext.getBody()
});

var TopicRecord = Ext.data.Record.create([{
name : 'categoryName',
mapping : 'categoryName'
}, {
name : 'ALARM_CATEGORY_ID',
mapping : 'alarmCategoryId'
}]);
var myNewRecord = new TopicRecord({
categoryName : 'all',
ALARM_CATEGORY_ID : 'all'
});
alarmCategoryStore.on('load', function() {
this.insert(0, myNewRecord);
Ext.getCmp('ef_alarmCategory').selectAll();
});

});[/code]

我2.2也没问题.
你把我的代码自己本地测试下吧

注释掉Ext.chart.Chart.CHART_URL = '/js/extjs/3.0/resources/charts.swf';

test.json的内容是
{
category:[
{categoryName:'xx',alarmCategoryId:1},
{categoryName:'yy',alarmCategoryId:2}
]
}