PDA

View Full Version : gridpanel reconfigure, this.view is null prior having viewed the gridpanel



pppswing
30 Nov 2010, 3:46 AM
Hello,

I have a tabpanel including 2 gridpanels. One is active by default.

I'm doing a reconfigure of the default inactive grid if I'm creating, modifying or deleting records of the default active grid.

I have a js message in firebug console this.view is null
when I am calling reconfigure without having viewed the default inactive grid at all.
I don't have this bug if I've seen the default inactive grid before.

How can I prevent this bug.

Thanks, :)


users_store.reload();
console.log('before in delete');
assignment_panel.reconfigure(
assignment_store,
new Ext.grid.ColumnModel(
{
defaults: {sortable: false},
columns: eagle.getAssignementColumns()
}
)
);
console.log('after in delete');

Condor
30 Nov 2010, 5:25 AM
Which Ext version? I seem to recall a bugfix for this.

pppswing
30 Nov 2010, 5:41 AM
Ext JS 3.0

Condor
30 Nov 2010, 5:56 AM
3.0.3? If yes, then you should update to 3.3.0 (or patch the current reconfigure method).

pppswing
30 Nov 2010, 7:00 AM
Thanks Condor!