When working with 2-digits year represetation maks like this: 99/99/99 99:99:99, crash occurs in MaskedEditBehavior.js, when onblur event is called. The problem is in AutoFormatDate. It has the following block:
if (Y4)
{
Ycur = CurDate.getUTCFullYear().toString();
}
else
{
Ycur = Ycur.substring(2);
}
Obviously, when Y4 is false, Ycur is never initialized and "object undefined" error occurs. This code should be changed to
Ycur = CurDate.getUTCFullYear().toString();
if (!Y4)
{
Ycur = Ycur.substring(2);
}
Comments: This short date bug has finally been corrected in the January 2013 Release of the Toolkit (v7). Download here: http://ajaxcontroltoolkit.codeplex.com/releases/view/100852
if (Y4)
{
Ycur = CurDate.getUTCFullYear().toString();
}
else
{
Ycur = Ycur.substring(2);
}
Obviously, when Y4 is false, Ycur is never initialized and "object undefined" error occurs. This code should be changed to
Ycur = CurDate.getUTCFullYear().toString();
if (!Y4)
{
Ycur = Ycur.substring(2);
}
Comments: This short date bug has finally been corrected in the January 2013 Release of the Toolkit (v7). Download here: http://ajaxcontroltoolkit.codeplex.com/releases/view/100852