Version: 4.1.60623.0
My DateTime MaskedEdit is broken in new version of AjaxToolkit. When I type in the date-time, e.g. "08/20/2012 11:45" and leave the text box after typing (tab, enter, or mouse-click), the time automatically switches to "08:20" so the value of text box becomes "08/20/2012 08:20". Looks like AjaxToolKit automatically switches Hour and MInute of time to month and day of the date. No matter what I do the time keeps switching to month and day.
As soon as I revert to older version of AjaxControlToolKit.dll, the MaskedEdit starts working as expected!
Here is my asp.net html for my controls
<asp:TextBox ID="txtBeginDateTime" runat="server" Width="105px" CssClass="inputText"
OnTextChanged="RequestData_EventHandler" />
<ajaxToolkit:MaskedEditExtender ID="MaskedEditExtenderBeginDateTime" runat="server"
TargetControlID="txtBeginDateTime" Mask="99/99/9999 99:99" MessageValidatorTip="true"
OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError" MaskType="DateTime"
AcceptAMPM="False" ErrorTooltipEnabled="True" ClearMaskOnLostFocus="False" InputDirection="LeftToRight" />
<ajaxToolkit:MaskedEditValidator ID="MaskedEditValidatorBeginDateTime" runat="server"
ControlExtender="MaskedEditExtenderBeginDateTime" ControlToValidate="txtBeginDateTime"
IsValidEmpty="False" EmptyValueMessage="Date and time are required" InvalidValueMessage="Date and/or time is invalid"
Display="Dynamic" TooltipMessage="Input a date and time" EmptyValueBlurredText="*"
InvalidValueBlurredMessage="*" SetFocusOnError="True" />
Comments: Replace "ValueText = arr[0];" (file MaskedEditBehavior.pre.js / function AutoFormatTime / line 2582) by "ValueText = time_arr[0];"
My DateTime MaskedEdit is broken in new version of AjaxToolkit. When I type in the date-time, e.g. "08/20/2012 11:45" and leave the text box after typing (tab, enter, or mouse-click), the time automatically switches to "08:20" so the value of text box becomes "08/20/2012 08:20". Looks like AjaxToolKit automatically switches Hour and MInute of time to month and day of the date. No matter what I do the time keeps switching to month and day.
As soon as I revert to older version of AjaxControlToolKit.dll, the MaskedEdit starts working as expected!
Here is my asp.net html for my controls
<asp:TextBox ID="txtBeginDateTime" runat="server" Width="105px" CssClass="inputText"
OnTextChanged="RequestData_EventHandler" />
<ajaxToolkit:MaskedEditExtender ID="MaskedEditExtenderBeginDateTime" runat="server"
TargetControlID="txtBeginDateTime" Mask="99/99/9999 99:99" MessageValidatorTip="true"
OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError" MaskType="DateTime"
AcceptAMPM="False" ErrorTooltipEnabled="True" ClearMaskOnLostFocus="False" InputDirection="LeftToRight" />
<ajaxToolkit:MaskedEditValidator ID="MaskedEditValidatorBeginDateTime" runat="server"
ControlExtender="MaskedEditExtenderBeginDateTime" ControlToValidate="txtBeginDateTime"
IsValidEmpty="False" EmptyValueMessage="Date and time are required" InvalidValueMessage="Date and/or time is invalid"
Display="Dynamic" TooltipMessage="Input a date and time" EmptyValueBlurredText="*"
InvalidValueBlurredMessage="*" SetFocusOnError="True" />
Comments: Replace "ValueText = arr[0];" (file MaskedEditBehavior.pre.js / function AutoFormatTime / line 2582) by "ValueText = time_arr[0];"