Our state of the art Gantt chart


Post by SIM-LTD »

Hi There

In the Gantt the context menu does not operate

As a matter of fact, were able to access "headerContextMenu", "taskContextMenu" but what about "scheduleContextMenu" ? like in the Sheduler.

Indeed the code below does not work with the Gantt

 scheduleContextMenu: {
            extraItems: [
                {
                    text: "Add Comment",
                    icon: "b-fa b-fa-fw b-fa-pencil",
                    cls: "b-separator",
                     onItem({ date, taskRecord, items }) {
                     ......................
                     .....................
Attachments
Capture d’écran 2019-05-17 à 16.54.37.png
Capture d’écran 2019-05-17 à 16.54.37.png (585.8 KiB) Viewed 1340 times

Post by mats »

scheduleContextMenu has no relevance for Gantt, as every row is a Task so taskContextMenu feature is what you should use.

Post by SIM-LTD »

If it is not possible or not relevant for your perspective, we can understand.

But for us, the Gantt is a means, to display Task, like a Scheduler; thus, as the Scheduler, attached a contextMenu onto the Gantt Chart makes sense; if we consider the Gantt Chart as an entity, such as the Grid or the Header of the Gantt, anyway...

Do you think, it will be possible to, attach/create a ContextMenu on the Gantt Chart using the Widget?
Or simpler, listen to the right Click on the Gantt Chart, so we can create our own contextMenu?

Post by mats »

 Do you think, it will be possible to, attach/create a ContextMenu on the Gantt Chart using the Widget? 
Of course, you are not limited in any way to develop your own context menu, either using pure JS, some other 3rd party widget library or using our "light framework". The docs has all the bits and pieces of how to make your own menu. If you are unsure of how to do something, you can always look at our source code too to learn.

Post by SIM-LTD »

Thank you very much. We'll let you know how we did it.

Post Reply