1. #1
    Ext User
    Join Date
    Feb 2008
    Posts
    3
    Vote Rating
    0
    zurdophp is on a distinguished road

      0  

    Default 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. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    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

  1. Replies: 3
    Last Post: 1 Sep 2010, 7:14 PM
  2. Cannot read property 'prototype' of undefined
    By flyboarder in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 3 May 2010, 2:19 PM
  3. Replies: 22
    Last Post: 10 Jul 2009, 2:08 PM
  4. Using AIR: TypeError: Can't get property dom from null value
    By sbauer in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 9 Jul 2009, 12:54 AM
  5. How to read property's value in JSON
    By wilfuler in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 24 Oct 2007, 4:42 PM

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar