0

When I create an Ext.grid.GridPanel object and call this.getView().refresh(false), I can get the gridPanel.GridView , but the error is:

this.grid is undefined

The GridView has no grid. Here is the code:

Ext.extend(Erms.user.EventUserPanel, Ext.grid.GridPanel, { loadData : function() {
   this.getStore().reload({ params : { start : 0, limit : 2 } });
   this.getView().refresh(false);
}});
Benoit
  • 1,995
  • 1
  • 13
  • 18
  • 1. what version of Ext? 2. Please provide a sample of your code, preferably in jsfiddle – Neil McGuigan Aug 15 '12 at 17:09
  • The version is Ext 3.4 ,here is the code Ext.extend(Erms.user.EventUserPanel, Ext.grid.GridPanel, { loadData : function() { this.getStore().reload({ params : { start : 0, limit : 2 } }); this.getView().refresh(false); }}); – user1600246 Aug 16 '12 at 01:48
  • Please edit the question with the extra detail rather than add it in via comments as it is hard to read. – Amalea Aug 16 '12 at 13:59
  • could you solve the issue? I am having a similar problem. When I do a refresh, i get the following error: `Uncaught TypeError: Cannot read property 'addClass' of null` – avn Dec 10 '15 at 11:16

0 Answers0