2 TreeViews pointing to the same Data

http://webix.com/snippet/5f4147b4

In the snippet above I create a tree structure (Schema) and assign it to 2 different treeviews. Only one renders. If I assign either of the other 2 to SchemaA, the second one renders correctly.

Why is this? I just wanted something displayed on the screen for the time being, but it was not clear that I needed a copy of the data. I can move on knowing this but if something has been ‘claimed’ then I would have expected an error the second time something tried to reference the data.

If you are using the same data source for several views, please usewebix.copy() helper to avoid any conflict

http://webix.com/snippet/9832d824

Quick question on webix.copy() Does it just copy the ‘data’ or it the item is an object does it copy the methods as well?

pcd

It will copy the entire object. Thus, the same view can be initialized several times: http://webix.com/snippet/b3e37c17