Results 1 to 9 of 9

Thread: Uncaught TypeError: Cannot read property 'internalId' of undefined

  1. #1
    Sencha User
    Join Date
    Nov 2008
    Posts
    96
    Answers
    2
    Vote Rating
    2
      0  

    Default Uncaught TypeError: Cannot read property 'internalId' of undefined

    I found some topics on this thema but nothing really helped me. Below my case.

    This happens when i try to replace the content of the tree with another.
    Old tree looks like this:
    Code:
          File
            |_ File1_en (id:123_1)
                 |_File2_en (id:456_1)
    new tree looks like this:
    Code:
          File
            |_ File1_de (id:123_2)
                 |_File2_de (id:456_2)

    Code:
     var oldTree = original tree;
     var newTree = same tree in different language;
     oldTree .store.setRootNode(newTree.store.getRootNode());
    the content is succesfully replaced but somehow i get this error when i try to expand/collapse + i get doubled nodes. I tried to clear, destroy the old entries, but it doesn't bring to much...

    Any ideas? Thanks!

  2. #2
    Sencha Premium User
    Join Date
    Feb 2011
    Location
    NJ
    Posts
    337
    Answers
    62
    Vote Rating
    61
      0  

    Default

    Sounds like it may be related to this bug:

    http://www.sencha.com/forum/showthre...o-many-records

  3. #3
    Sencha User
    Join Date
    Nov 2008
    Posts
    96
    Answers
    2
    Vote Rating
    2
      0  

    Default

    @droessner - thank you for your reply but i think it's not the same case because i am using 4.0.7 and the referenced code from the thread you indicated is not available.

    any other ideas? thx

  4. #4
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,101
    Answers
    113
    Vote Rating
    100
      0  

    Default

    does setting animCollapse: false on the tree help?

  5. #5
    Sencha User
    Join Date
    Nov 2008
    Posts
    96
    Answers
    2
    Vote Rating
    2
      0  

    Default

    @Farish does it relate to tree node collapse? Just for tryout i test it, unfortunately brings nothing...

  6. #6
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,101
    Answers
    113
    Vote Rating
    100
      0  

    Default

    are you setting an id config for the nodes? that might cause duplication if its not set. try adding a unique id to each of your node and see if it changes anything.

    I am not sure what could be causing the problem but just putting forward some suggestions which might work. Also, if you share your code, someone might be able to figure out whats wrong. also mention your Ext version.

  7. #7
    Sencha User
    Join Date
    Nov 2008
    Posts
    96
    Answers
    2
    Vote Rating
    2
      0  

    Default

    @Farish - please read more carefully the topic before you respond to it. The Ext version, unique ids and code snippet are available.

    some other ideas?

  8. #8
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Macerata
    Posts
    16
    Vote Rating
    0
      0  

    Default

    itemSelector is set 'div'

  9. #9
    Sencha Premium Member
    Join Date
    Apr 2015
    Posts
    15
    Vote Rating
    0
      0  

    Default Potential Solution

    I had the same bug thrown by a dataview. I am not sure exactly what causes it, but I cleared it up by properly clearing the store and refreshing the dataview after store clear.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •