Our powerful JS Calendar component


Post by jeff.wang »

Hi,
if the data items are invalid, such as the startDate is later to endDate, i can't find if the calendar(Gantt) provide some methods to deal with this situation, we are using both components (calendar and gantt ), we has the same question using Gantt, Specially relationship line don't show as normal when the data items are invalid in gantt.


Post by alex.l »

Hi jeff.wang,

What kind of special methods are you expecting to see?

All the best,
Alex


Post by jeff.wang »

Hi alex,
i just want to know whether the component provide the public methods to deal with this situation, such as the red alert display in the day cell when the date item is invalid.


Post by mats »

Sure, if you put configs like https://bryntum.com/docs/scheduler/api/Core/widget/DateField#property-min or https://bryntum.com/docs/scheduler/api/Core/widget/DateField#property-max you will see a red border with an error message

The scheduling engine doesn't accept invalid values so it should not be possible to have invalid dates anywhere in the Gantt.


Post by jeff.wang »

OK, If the data is invalid( the end date is earlier than the start date ), the display of the Gantt is abnormal:
In Gantt's case, if there is data with the connection relationship, if the first data is incorrect, the page will not be displayed, but if the first one is correct and the subsequent values are incorrect, the subsequent ones will be displayed as a small vertical line.

so I need to sure that the data is valid, is this so?

thank you.


Post by alex.l »

Hi jeff.wang,

We are expecting to have valid data loaded. There is some internal methods to check what we can, in Gantt this checking is more advanced than in Calendar, but it's not cover all possible cases of invalid data.
You have to take care of it yourself.

All the best,
Alex


Post by jeff.wang »

that's ok, thank you very much!


Post Reply