Our state of the art Gantt chart


Post by petersm »

Hi

Is it possible to have custom headers for the gannt chart
Something like this

Capture.PNG
Capture.PNG (42.82 KiB) Viewed 430 times

Edit: Using timeRanges seems to be a way to do this

Last edited by petersm on Mon Jan 24, 2022 2:01 pm, edited 1 time in total.

Post by mats »

Yes, very easy with a custom renderer for your view preset. See https://bryntum.com/docs/gantt/api/Scheduler/preset/ViewPresetHeaderRow

Live demo of this: https://bryntum.com/examples/gantt/custom-header/


Post by petersm »

Thanks, I will try that


Post by petersm »

Is it possible to make this apply to multiple zoom levels?


Post by mats »

Sure, but you would have to define it for all the levels as they are all individually defined.


Post by petersm »

Im looking in the documentation but i dont see how to set a preset to a zoom level.
Would this be timeResolution?


Post by alex.l »

Zooming is nothing else than going throw defined set of viewPresets of your component. You can defined a set of viewPresets available for your Gantt.

Please see
https://bryntum.com/docs/gantt/api/Scheduler/preset/PresetManager
https://bryntum.com/docs/gantt/api/Scheduler/preset/ViewPreset

All the best,
Alex


Post Reply