Ronaldo
28 Sep 2007, 12:00 AM
Hello,
First, congrats with the alpha release. Sure does look good!
However, as described earlier (http://extjs.com/forum/showthread.php?t=13383), calling the reconfigure method of the GridPanel causes the error
TypeError: this.view.bind is not a function message=this.view.bind is not a function
Though the view property of the grid is not null, there's no bind method for the view...? After updating from SVN, chinging the line
this.view.bind(store, colModel);
to
this.view.initData(store, colModel);
makes it all work.
For clarity, here's the GridPanel.reconfigure method:
reconfigure : function(store, colModel){
if(this.loadMask){
this.loadMask.destroy();
this.loadMask = new Ext.LoadMask(this.body,
Ext.apply({store:store}, this.loadMask));
}
this.view.bind(store, colModel); // Error
this.store = store;
this.colModel = colModel;
if(this.rendered){
this.view.refresh(true);
}
},
First, congrats with the alpha release. Sure does look good!
However, as described earlier (http://extjs.com/forum/showthread.php?t=13383), calling the reconfigure method of the GridPanel causes the error
TypeError: this.view.bind is not a function message=this.view.bind is not a function
Though the view property of the grid is not null, there's no bind method for the view...? After updating from SVN, chinging the line
this.view.bind(store, colModel);
to
this.view.initData(store, colModel);
makes it all work.
For clarity, here's the GridPanel.reconfigure method:
reconfigure : function(store, colModel){
if(this.loadMask){
this.loadMask.destroy();
this.loadMask = new Ext.LoadMask(this.body,
Ext.apply({store:store}, this.loadMask));
}
this.view.bind(store, colModel); // Error
this.store = store;
this.colModel = colModel;
if(this.rendered){
this.view.refresh(true);
}
},