bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
54 stars 6 forks source link

Set `endDate` max limit ignores in `TaskEditor` #10119

Open chuckn0rris opened 1 month ago

chuckn0rris commented 1 month ago
    listeners : {
        beforeTaskEditShow({ taskRecord, editor }) {
            const endDateField = editor.widgetMap.endDate;

             endDateField.max = new Date('2025-02-02');

        }
    }

Forum post

Hello!

Reaching out because we're trying to dynamically set the max enddate for a specific set of dates. We're using an endDateField (we have no trouble setting a max on the startDateField). But it seems to always be overridden by the default max date (200 years out), whereas we need it to be 10 days out from todays date. Within the beforeCellEditStart listener, we've tried setting column.editor.max, column.max, editor.picker.maxDate and so far nothing. Any ideas where we may be going wrong?

Thanks!