PDA

View Full Version : Ext.grid.GridView refresh(headerstoo)



Telrik
30 Nov 2011, 7:53 AM
Hello!
I extend EditorGridPanel
some.CartGrid = Ext.extend(Ext.grid.EditorGridPanel, { ...
How can i override "refresh" method of my component some.CartGrid.getView() to make it refresh(false) parameter instead of true.

kinda confused. thanks for answer.
Now i use this kind of overriding but i only need to override this event only in my component not in all gridviews ;(

Ext.override(Ext.grid.GridView, {
refresh : function(headersToo) {
this.fireEvent('beforerefresh', this);
this.grid.stopEditing(true);

var result = this.renderBody();
this.mainBody.update(result).setWidth(this.getTotalWidth());
if (headersToo === true) {
//this.updateHeaders();
//this.updateHeaderSortState();
}
this.processRows(0, true);
this.layout();
this.applyEmptyText();
this.fireEvent('refresh', this);

}
});