PDA

View Full Version : Is there a way to have a model have different types of models as children?



dirtdevil
16 Aug 2012, 5:05 PM
I know you can specify "hasMany" for a model but lets say I have a treepanel with a custom model and my model has more then one "hasMany" models under it. When I expand that node and the page does a fetch for the json object from the server, when it sees the list of children, how will it know what raw json object in the fetch belongs to what model?

vietits
16 Aug 2012, 5:46 PM
It will base on the root config you have defined for proxy reader. Default value of root config is 'children'.