Grouplist

I have a grouplist that needs to be regularly update with fresh data.

In the following example, I created two buttons that clear and then reparse a dataset. I have noticed that after the first parsing, the children disappear.

Can you explain why and how best to accomplish this?

Please note that each new data set will be different. Some will have many parents, others could have none. So I assume I need to use the single-value hierarchical dataset approach.

http://webix.com/snippet/8da6a432

You should use a copy of each dataset via webix.copy(data), because components work directly with the DataStore and may cause
irreversible changes in it.

http://webix.com/snippet/c4aa11f5

Thanks, but something still does not seem right. In your example, hit ‘data2’ first then ‘data1’. Data1 loads with no children.

One more webix.copy() solves the problem: http://webix.com/snippet/409327a5