Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJS-7743
in
4.2.0.265.
-
[4.1.3.548] On treestore reload : Cannot read property 'internalId' of undefined
I've got it in my app with 4.1.1a, you can get it easily in xml tree online example just by using:
Code:
document.getElementsByTagName('iframe')[0].contentWindow.Ext.ComponentManager.all.map['treepanel-1009'].store.reload()
-
Sencha User
-

Originally Posted by
kevin.chen
yes.
-
Sencha User
Hi Vadim
I can not reproduce the issue from above url.
Can you double check it ?
Thanks
-
Kevin, checked a few times, I still get it, on chrome v23, macosx 10.6.8.
I just expand the "button" node, then in console I reload the store and I get that error, and then the button node gets frozen, I can collapsed it or expanded anymore.
The error is thrown in Ext.view.AbstractView.updateIndexs method, below the stack:
Code:
- [COLOR=red !important]Uncaught TypeError: Cannot read property 'internalId' of undefined ext-all.js:21[/COLOR]
and where is thrown:
Code:
updateIndexes : function(startIndex, endIndex) {
var ns = this.all.elements,
records = this.store.getRange(),
i;
startIndex = startIndex || 0;
endIndex = endIndex || ((endIndex === 0) ? 0 : (ns.length - 1));
for (i = startIndex; i <= endIndex; i++) {
ns[i].viewIndex = i;
ns[i].viewRecordId = records[i].internalId; // endIndex is bigger then lenght of the records array
Uncaught TypeError: Cannot read property 'internalId' of undefined
if (!ns[i].boundView) {
ns[i].boundView = this.id;
}
}
},
-
Sencha User
This is only reproducible after you expand a node, no matter it is 'button' or 'app'
-
Sencha User
Thanks for the report! I have opened a bug in our bug tracker.
-

Originally Posted by
kevin.chen
This is only reproducible after you expand a node, no matter it is 'button' or 'app'
yes, I know, I just gave you an example. Well glad you reproduced it, thx.
-
Ext JS Premium Member
Is there any workaround, or override for this problem?
-
is this bug fixed in 4.2 beta ? I don't see it in release notes