Mis.Ext.CrudPanel=Ext.extend(Ext.Panel,{
refresh:function()
{
alert(1);
},
initComponent : function(){
this.cm.defaultSortable=true;
this.sm = new Ext.grid.CheckboxSelectionModel();
Mis.Ext.CrudPanel.superclass.initComponent.call(this);
var viewConfig=Ext.apply({forceFit:true},this.gridViewConfig);
this.grid=new Ext.grid.GridPanel({
store: this.store,
cm: this.cm,
sm:this.sm,
listeners :{
cellclick:function()
{
这里该如何调用refresh方法
}
}
});
}
}
refresh:function()
{
alert(1);
},
initComponent : function(){
this.cm.defaultSortable=true;
this.sm = new Ext.grid.CheckboxSelectionModel();
Mis.Ext.CrudPanel.superclass.initComponent.call(this);
var viewConfig=Ext.apply({forceFit:true},this.gridViewConfig);
this.grid=new Ext.grid.GridPanel({
store: this.store,
cm: this.cm,
sm:this.sm,
listeners :{
cellclick:function()
{
这里该如何调用refresh方法
}
}
});
}
}
refresh:function()
{
alert(1);
},
initComponent : function(){
this.cm.defaultSortable=true;
this.sm = new Ext.grid.CheckboxSelectionModel();
Mis.Ext.CrudPanel.superclass.initComponent.call(this);
var viewConfig=Ext.apply({forceFit:true},this.gridViewConfig);
this.grid=new Ext.grid.GridPanel({
store: this.store,
cm: this.cm,
sm:this.sm,
listeners :{
scope:this,
cellclick:function()
{
this.refresh();
这里该如何调用refresh方法
}
}
}); }
}