Uncaught TypeError: Cannot read property 'internalId' of undefined( WHILE SORTING NODES ON EXPAND)
问题 I want to the sort the tree node when it is expanded. I have been struggling to do this in extjs 4.1.0 with itemexpand or beforeItemExpand event using the following code. It works fine in ExtJS 4.2.1. When I click on node to expand, I get this: Uncaught TypeError: Cannot read property 'internalId' of undefined at: ns[i].viewRecordId = records[i].internalId in updateIndexes : function(startIndex, endIndex) method of Ext.view.AbstractView class Code: var mystore = Ext.create('Ext.data.TreeStore