Our blazing fast Grid component built with pure JavaScript


Post by rbtmtn »

I am also trying to add a child to a scheduler tree store record.

I am using the vanilla scheduler:
scheduler.resourceStore.getById('P2').appendChild( new bryntum.scheduler.Model({name:"Foo", id: 'R1003_P2'}));
When I try that I get the following error:
StoreTree.js:205 Uncaught TypeError: child.isExpanded is not a function
Is this a bug or am I doing it wrong?

Post by pmiklashevich »

Hello,

How can I reproduce the issue with one of our demos?

Please open this one: https://bryntum.com/examples/scheduler/ ... x.umd.html
and run in console:
record = new bryntum.scheduler.Model({name:"Foo", id: 'R1003_P2'})
scheduler.resourceStore.getById(4).appendChild(record)
You can find "Foo" under "Gate 1"

P.S. It's better to pass an object directly to appendChild like
record = scheduler.resourceStore.getById(4).appendChild({name:"Foo", id: 'R1003_P2'})
Best,
Pavel

Pavlo Miklashevych
Sr. Frontend Developer


Post by rbtmtn »

Pavel,

Thank you for the reply. I was able to make it work in the demo, I must be doing something else wrong. Apologies.

Rob

Post Reply