Duplicate children issue

Hi,

I am using Local View structure.when i use same child for for different parent then number “2” append automatically to the child.
Thanks

In that sample, the model uses strings as the keys. If you copied a particular child object to be the child of a different parent object, then the model had to make the key unique. In the case of strings, it appends a numeral, in your particular case “2”.

You might want to use a different property (or multiple properties) to hold your additional information that you want to be independent of the key. For example, in a real family tree or organization tree, you could not use the person’s name as the key, because that would prevent two or more people with the same name being represented separately in the model.