-
2 Sep 2010 5:53 AM #1
TypeError: Cannot read property 'parentNode' of undefined
TypeError: Cannot read property 'parentNode' of undefined
Good morning from Valencia, Venezuela; and sorry for my poor english. I have two grids, one that is loaded into a panel (this panel is in a tab), and other that is loaded into another tab. Both are in a FormPanel, this FormPanel is in a Window that is called when I make double click from a record of a master grid. This master grid is called when I make click in an icon that is located on Web Desktop. The error is: "TypeError: Cannot read property 'parentNode' of undefined", and this occurs when I close the window that content the formPanel. I think that the grid is destroyed by the close instruction, and I can't use the property 'hide', because when I make double click in another record, the data is not loaded, and the task bar of the Web Desktop don't remove the item. Thanks in advance, I will return crazy with this issue...
PS: Don't put the code, because when I comment the lines that show the grids into a formPanel, the app work fine.
-
2 Sep 2010 5:58 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Not much information to go on...
Can't you hide the window (closeAction:'hide') and reuse the window for the next record, e.g.
Code:var win = Ext.getCmp('mywindow'); if (!win) { win = new Ext.Window({ id: 'mywindow', closeAction: 'hide', ... }); win.render(Ext.getBody()); } var form = win.find('itemId', 'myform'); // example - use your own method to locate the form in the window form.getForm().loadRecord(record); win.show();
Similar Threads
-
[FIXED-195] Cannot read property 'params' of undefined" when AjaxProxy is destroyed
By orangechicken in forum Sencha Touch 1.x: BugsReplies: 3Last Post: 1 Sep 2010, 7:14 PM -
Cannot read property 'prototype' of undefined
By flyboarder in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 3 May 2010, 2:19 PM -
[FIXED][3.0svn3995] TypeError: map[k] is undefined using JSONWriter
By sramanna in forum Ext 3.x: BugsReplies: 22Last Post: 10 Jul 2009, 2:08 PM -
Using AIR: TypeError: Can't get property dom from null value
By sbauer in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 9 Jul 2009, 12:54 AM -
How to read property's value in JSON
By wilfuler in forum Ext 2.x: Help & DiscussionReplies: 7Last Post: 24 Oct 2007, 4:42 PM


Reply With Quote