问题如题。。
[color=red]解决方法就是必须等待Grid渲染完成之后,再load store的数据[/color]
在store中增加load事件的监听器:
再增加grid的render事件的监听器:
说明:this表示grid,如果没有渲染完就选择,在IE6下会有问题
[color=red]解决方法就是必须等待Grid渲染完成之后,再load store的数据[/color]
在store中增加load事件的监听器:
this.store.on({
load:{
fn:function(){
//select grid's first row using selection model
this.getSelectionModel().selectFirstRow();
}
},
scope:this
});
再增加grid的render事件的监听器:
this.on({
render:{
fn: function() {
this.store.load();
}
},
scope:this
});
说明:this表示grid,如果没有渲染完就选择,在IE6下会有问题