PDA

View Full Version : [CLOSED] Cannot inline override view for GridPanel



uzver
26 Mar 2011, 2:52 AM
For Ext.grid.GridPanel:


[...]
viewConfig: {
collectData: function(records, index){
return this.callParent(arguments);
}
},
[...]

When create component:


Uncaught Error: [Ext.grid.GridView#refresh] this.callParent() was called but there's no such method (refresh) found in the parent class (Ext.Component)

Stack:


Base.callParentext-core-debug.js:2397
Ext.define.viewConfig.collectDataStatesList.js:24
Ext.define.refreshAbstractDataView.js:299
Base.callParentext-core-debug.js:2401
Ext.define.refreshTableView.js:462
Base.callParentext-core-debug.js:2401
Ext.define.refreshGridView.js:70
Ext.define.onDataChangedAbstractDataView.js:566
Ext.require.Ext.util.Event.Ext.extend.fireext-core-debug.js:13150
Ext.define.fireEventObservable.js:272
Ext.define.loadRecordsStore.js:1065
Ext.define.onProxyLoadStore.js:747
Ext.define.processResponseServerProxy.js:238
(anonymous function)AjaxProxy.js:319
Ext.apply.callbackext-core-debug.js:5586
Ext.define.onCompleteConnection.js:710
Ext.define.onStateChangeConnection.js:659
Ext.Function.bind

Jamie Avins
26 Mar 2011, 7:56 AM
How are you overriding the method here? If you are just putting this on the config, there is no parent class to call this way.

uzver
26 Mar 2011, 8:21 AM
It's my fault.

I wrote custom class for GridDataView and now grid's working fine.

Jamie Avins
26 Mar 2011, 8:42 AM
Good to hear, will close this out.