I have upgraded from 4.0.7 to 4.1 RC2 and my treepanel failed to load. The reason being, I am using default idProperty i.e. id which has conversion field in my model. But id field is not getting set. Seeing few posts I configured my idProperty to some other value in my Model. Even though I set different value for idProperty the default value is seen in firebug. Hence id and parentsId is always undefined.
You shouldn't change idProperty for treeStore, cause it will rewrite a new model with id,parent,children blabla for the store, if you change idProperty to others, it will lose to find it.
I suggest you use default id, parentId fields in your model.
I am using default idProperty for which I have a convert field.
name: 'id',
convert: function (value, record) {
var valueObject = record.get('valueObj');
return valueObject['uniquePath'];
}
This was getting populated in 4.0.7, but in 4.1.1 RC2 the 'id' field is not present when seen in firebug. Hence the id and subsequently the parentId for child nodes are 'undefined'.