dhxCalendarA with dateFormat including letters broken

In dhtmlxGrid v4.0.2, using a column type of dhxCalendarA with the dateFormat for the grid set to any format including letters instead of numbers (e.g. “January” instead of “01”), capital letters (except for “AM” or “PM”) will cause the calendar to erase the existing data in the cell upon exiting the cell, even if no edit was made.

To reproduce:

[code]

[/code]

Simply clicking on the cell, opening the calendar, and then clicking away will erase the data. Similarly, a manual entry of “30-Jan-2014” will be instantly erased upon leaving the cell, but using a lower-case “j” (i.e. “30-jan-2014”) will work fine.

The cause can be found in the dhtmlXCalendarObject.prototype._strToDate in dhtmlxgrid.js. The regular expression matching is case-sensitive when trying to match the following regex character set: [a-zéûä\u0430-\u044F\u0451]

The line of code creating the case-sensitive RegEx is this: var x = new RegExp(s); and should be changed to this: var x = new RegExp(s,"i");

I apologize for the delay.

Your issue is confirmed. We’re working on it.

Hello
This issue will be fixed in the next update. Till you can use your approach.