View Full Version : TreeNode type changed after appendChild(node)

25 Apr 2013, 12:41 AM
I want to append the node(as below shows, the node MemberDetail[i]) to parent several times, but after first child node is appended successfully, it can't append the rest children nodes correctly(they don't contain anything), it works well in ext 4.1.0 but not in 4.1.3.


The code is simple :


And I log the node info before and after appendChild, I don't know why the node type is different after append, after append it's not an Object, please help! Thank you!


26 Apr 2013, 2:34 PM
Have you tried making a copy of the node to append?
Also, have you tried the same in 4.2 to see if that works?

26 Apr 2013, 6:52 PM
I tried both but did not work.

I founded that I override the Ext.data.Model class , and in constructor function I change

me.raw = raw || data

me.raw = raw //what is in 4.1.0
It works, but I don't know why. Thank you