Our state of the art Gantt chart


Post by ggalipeau »

I am trying to prevent editing on all my first level tasks in my gantt. I was going to look for a listener to catch. But, I can't seem to find which one. Basically, for my first level tasks I don't want anyone to edit, move, etc. They should be read-only.

Side-note: Where can I find documentation on all the listeners available for the Bryntum Gantt? I can't see to find the documentation on it.

Thanks in advance,
Greg


Post by mats »

Here are all the Gantt events https://bryntum.com/docs/gantt/#Gantt/view/Gantt#events

But you need to also look at the specific feature too, like CellEdit and TaskEdit to disable them on a per-task basis. There's beforeCellEditStart event and https://bryntum.com/docs/gantt/#Gantt/feature/TaskDrag#event-beforeTaskDrag and so forth to allow you full control over just about every possible interaction with the data.


Post by ggalipeau »

Thanks for the tip. That got me in the right direction.

The issue I had was finding the right listeners in the documentation. If you go to the grid events, the listeners I am looking for aren't there. You have to know to go to the CellEdit and TaskEdit documentation. Then the listener are there. But, it says "on-owner". So, it's actually on the gantt listeners. I know why you built the documentation this way. But, it makes it really hard to read. I would really like to know all the available listeners on the gantt and not have to go through each feature and look for the ones that say "on-owner". Just my feedback on the documentation. Completely understand if there was reasons it was built like that.


Post by mats »

Fair enough, that's good feedback. We'll look into getting this fixed, keep the ideas coming! :) https://github.com/bryntum/support/issues/2679


Post Reply