Hello
When I want add a single Tree element, then I do the following:
const parent = this._scheduler.resourceStore.getById(resource.parentId);
parent.appendChild(resource);
And everything works as expected
What I do, when I want add a lot of tree data?
for instance something like this, throws an "record.parend undefined" exception
this._scheduler.resourceStore.add({ id : 1, name : 'ABBA', country : 'Sweden', children: [
{ id: 2, name: 'Agnetha' },
{ id: 3, name: 'Bjorn'},
{ id: 4, name: 'Benny'},
{ id: 5, name: 'Anni-Frid'}
]})
The "tree" Feature in the Scheduler Configuration is activiated.
Question: How I add set of tree data in the store?