私は単純なDelButtonクラスを持っています:
DelButton = Ext.extend(Ext.Button、{
、無効:false
、リスナー:{
、selectionchange:function(){
alert('!!!!');
}
、initComponent:function(){
this.relayEvents(this.grid.getSelectionModel()、['selectionchange']);
DelButton.superclass.initComponent.call(this);
}
});
buildTBar:function(config){
config.tbar = {}
config.tbar.push(new DelButton({grid:this}))
}
、
buildConfig:function(config){
this.buildTBar(config)
}
、
AbstractEditorGridPanel = Ext.extend(Ext.grid.EditorGridPanel、{
initComponent:function(){
var config = {
デフォルト:{border:true、autoHeight:false}
};
this.buildConfig(config);
Ext.apply(this、Ext.apply(this.initialConfig、config));
AbstractEditorGridPanel.superclass.initComponent.call(this);
}
この場合、relayEventが機能しないのはなぜですか?(this.grid.getSelectionModelが存在します)