-
4 Oct 2010 3:53 AM #1
[CLOSED][3.3.0-rc]Ext.grid.ColumnModel -> destroy
[CLOSED][3.3.0-rc]Ext.grid.ColumnModel -> destroy
hi team,
this method seems to have changed in 3.3:
i sometimes get the error in firebug:Code:destroy : function() { var length = this.config.length, i = 0; for (; i < length; i++){ this.config[i].destroy(); // Column's destroy encapsulates all cleanup. } delete this.config; delete this.lookup; this.purgeListeners(); }
this.config[i].destroy is not a function
[Break on this error] this.config[i].destroy();
i guess it happens when a column or the cm itself is not yet rendered when calling destroy().
adding a check for this should help.
kind regards
tobiu
-
4 Oct 2010 4:01 AM #2
update: the theory was wrong. the error occured when using sakis rowactions-plugin with 3.3 (the column does not have a destroy-method).
so, this is not really an ext bug. i added a check if destroy exists, just in case.
Code:Ext.override(Ext.grid.ColumnModel, { destroy : function() { var length = this.config.length, i = 0; for (; i < length; i++){ if(typeof this.config[i].destroy == 'function'){ this.config[i].destroy(); // Column's destroy encapsulates all cleanup. } } delete this.config; delete this.lookup; this.purgeListeners(); } });
-
4 Oct 2010 4:09 AM #3
RowActions have been replaced by ActionColumn in 3.3
http://dev.sencha.com/deploy/ext-3.3...d.ActionColumn
http://dev.sencha.com/deploy/ext-3.3...rray-grid.htmlSearch the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FIXED-547][3.1.1] ColumnModel#setConfig() -> this.config[i].destroy not a function
By Max_nl in forum Ext 3.x: BugsReplies: 11Last Post: 3 Jan 2011, 12:31 PM -
[3.0 SVN] GridPanel.reconfigure does not destroy old Store or ColumnModel
By Animal in forum Ext 2.x: BugsReplies: 0Last Post: 13 Mar 2009, 12:53 AM -
[2.01b1][CLOSED] Ext.grid.ColumnModel config: hidden
By mjlecomte in forum Ext 2.x: BugsReplies: 2Last Post: 4 Nov 2007, 10:06 AM -
[Solved] Ext 1.1: How to set column style (css) in Ext.grid.ColumnModel config?
By Phenothiasine in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 10 Aug 2007, 9:28 AM -
[Ext.BasicDialog].destroy(true) doesn't destroy shadow
By diegovilar in forum Ext 1.x: BugsReplies: 1Last Post: 25 Mar 2007, 12:42 PM


Reply With Quote