Our state of the art Gantt chart


Post by beotech »

Let's assume the user's locale has the dot as decimal separator.

  • If the user enters 2.4 in the effort column, it will be correctly displayed as 2.4 after validation

  • If the user enters 2,4 in the effort column, it will be automatically converted to 2, instead of 2.4

We would like to be able to manage both the coma and the dot separators.

Is there a way to achieve that ?
If not, is there an event we can use to perform a replace coma with dot on the entered value before it is converted ?


Post by pmiklashevich »

Thank you for the report, ticket here: https://github.com/bryntum/support/issues/2460

Pavel Miklashevich - Core Developer

Post by beotech »

As we are not going to upgrade our Bryntum Gantt version anytime soon, could you provide us with a alternative temporary solution please ?


Post by pmiklashevich »

You can override DateHelper.parseDuration function to replace comma with dot in the first match

magnitude = parseNumber(match[1]?.replace(',', '.')),
Pavel Miklashevich - Core Developer

Post Reply