PDA

View Full Version : [2.0a1][SOLVED] Grid metaData functionality / Bind error



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);
}
},

jack.slocum
28 Sep 2007, 12:17 AM
Fixed. I moved the alias to it's proper spot.

Ronaldo
28 Sep 2007, 12:23 AM
Thanks!

matt.hall
8 Oct 2007, 8:21 AM
Hi guys. Just curious as to how we get such updates. Thanks a bunch!

- Matt :-?

jsakalos
8 Oct 2007, 1:26 PM
Hi guys. Just curious as to how we get such updates. Thanks a bunch!

- Matt :-?

You need to update from svn and re-build the Ext. There are several threads on how to do that.

matt.hall
9 Oct 2007, 9:44 AM
Will do. Thanks