Our state of the art Gantt chart


Post by hugh.dent »

Hi,

We currently use the EndDate as the date for Milestones, since they're 0 duration, this updates the StartDate as well.
When moving the Milestone to a later date, this is fine.
However, it is giving an issue where we cannot change the Milestone date to any time earlier than it currently is.
Is there a way to allow this?

Screenshot 2025-05-13 104847.png
Screenshot 2025-05-13 104847.png (26.97 KiB) Viewed 66 times

This should be valid for Milestones and not give the minimum date error.

Kind Regards,
Hugh


Post by alex.l »

Hi Hugh,

Your request sounds reasonable to me. I've opened a ticket for that here https://github.com/bryntum/support/issues/11333
You can subscribe on ticket updates to be notified when it's done.

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy

We do not write the code in bounds of forum support. If you need help with development, contact us via bryntum.com/services


Post by hugh.dent »

Hi Alex,

Is there a current way to remove the check from certain rows?
A way to override it or stop it from firing?


Post by alex.l »

You can try to override min getter for EndDateField in EndDateColumn. Please review these 2 classes.
default code

    get min() {
        let min               = this._min;
        const eventStartDate  = this.eventRecord?.startDate;

    if (eventStartDate) {
        min = DateHelper.max(min || eventStartDate, eventStartDate);
    }

    return min;
}

Try to add https://bryntum.com/products/gantt/docs/api/Gantt/model/TaskModel#property-isMilestone check into it deicide if min is required to be set.
Here is how to override https://bryntum.com/products/gantt/docs/#Core/mixin/Override

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy

We do not write the code in bounds of forum support. If you need help with development, contact us via bryntum.com/services


Post by hugh.dent »

Hi Alex,

This seems to have worked. Thanks for your time


Post by alex.l »

Glad to hear! Good luck!

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy

We do not write the code in bounds of forum support. If you need help with development, contact us via bryntum.com/services


Post Reply