onBeforeTimeHeaderRender is being run for every event when using gantt
12 years ago.
I have my scheduler with viewType = "Resources".
I add my events and run dps.update().
onBeforeTimeHeaderRender runs 11 times.
But when switching to viewType = "Gantt" it runs 11x#events times every time I update.
So if I have 16 events it will run 16x11 = 198 times.
Maybe I am using it wrong.
Here is a fiddle: http://jsfiddle.net/Yja42/2/
To test:
It will load with viewType = "Resources".
Try clicking Reload events button.
The log will output 11 at the bottom.
Try switching to gantt and press the same button.
It will now say 198.
(I'm pretty sure I have gotten this behaviour when using viewType = "Resources" as well but I havnt been able to recreate it yet)
Side question. How do I add events in the fastest way ?
DayPilot