Our pure JavaScript Scheduler component


Post by jvdgrift »

Hi,

We want to show some information in the ViewPresetHeader. The renderer function is called one time for the whole TimeSpan that is set. Is there a way to change the information the renderer function should return at a later time and update/refresh/repaint the headers? (e.g. we want to update only certain headers in the visible range for every scroll action and/or zoom level change)

Kind regards, Jeroen.


Post by johan.isaksson »

Hi,

Please take a look at the header-summary demo, it refreshes the header on event store changes:

https://bryntum.com/products/scheduler/examples/header-summary/

It does so by calling scheduler.timeAxisColumn.refreshHeader()

Best regards,
Johan Isaksson

Post by jvdgrift »

TypeScript complains with "Property 'timeAxisColumn' does not exist on type 'Scheduler'." (using bryntum scheduler 5.5.1 atm)


Post by tasnim »

Hi,

Please upgrade to the latest version 5.6.8. I don't see the issue with the latest version.

Best of luck :),
Tasnim


Post by jvdgrift »

We currently have an upgrade issue with 5.6.5 and above... the visualDateRange is somehow null. Our current code works upto 5.6.4...


Post by alex.l »

Hi,

If you can't upgrade, please use ts-ignore or type casting as a temp fix. I see no other ways to help you except upgrade.

All the best,
Alex


Post by jvdgrift »

This seems to work in 5.6.4 (in 5.5.1 it didn't). Thanks!

// @ts-ignore
this.scheduler.timeAxisColumn.refreshHeader();

We still need to further investigate why our production build ends up having the visualDateRange as null on 5.6.5 and above. We will post something when we have some clue... (as it works in development mode).


Post by alex.l »

Ok, please post an application with steps to reproduce when you'll be able. We would try to help you too or confirm a bug on our side.

All the best,
Alex


Post Reply