Our state of the art Gantt chart


Post by asikamiotis »

Can i use eventBuffer feature in gantt without having a scheduler on the bottom of the page like in the examples ?

I am already using eventSegments in the gantt component (which is also a feature of Scheduler PRO) with almost no issues.

Though when i use

   eventBufferFeature:{
            renderer({ eventRecord, preambleConfig, postambleConfig }) {
                console.log(eventRecord);
            }
        },

Nothing is printed in the console and nothing appears.

OR i have tried the following with no results either.

   eventBufferFeature: true

Event example config:

{
	"0": {
		"id": "prj-state-10412",
		"name": "****",
		"expanded": false,
		"startDate": "2022-09-01",
		"endDate": "2023-02-28",
		"manuallyScheduled": true,
		"eventColor": "#6c011d",
		"postamble": "1 month",
		"segments": [
			{
				"name": "****",
				"startDate": "2022-09-01",
				"endDate": "2022-12-31",
				"eventColor": "#240009"
			},
			{
				"name": "****",
				"startDate": "2023-01-01",
				"endDate": "2023-02-28",
				"eventColor": "#36000E"
			},
			{
				"name": "****",
				"startDate": "2023-03-01",
				"endDate": "2023-03-28",
				"eventColor": "#6c011d"
			}
		]
	}
}

Post by mats »

It's not intended for use in the Gantt, it was built for the Scheduler Pro. Can you please share some details about your use case for the feature in Gantt? Perhaps we can adapt it to also be supported in the Gantt.


Post by asikamiotis »

I am trying to show a time span after an event on the same row in the gantt, but i don't want it to affect its parent's duration.
Segments looks suitable for something like that but segments affects its parent's event duration as well and i don't want that.


Post by mats »

If you only need a simple visual element, I'd recommend just using taskRenderer to output an extra element and style it as you need. https://bryntum.com/products/gantt/docs/api/Gantt/view/GanttBase#config-taskRenderer


Post by asikamiotis »

I am sorry i think that won't be possible since we need to show a specific time span (one month later after the last segment of the event) and not just a visual element which width will be set in pixels.


Post by mats »

Got any screenshots showing what you're looking to visualize?


Post by asikamiotis »

Well we need something that works as the preamble & postable configuration :).


Post by mats »

If you don't like to use the taskRenderer, perhaps this is something we can develop for you as part of a Feature Sponsorship?

https://bryntum.com/services/


Post Reply