Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Issue: MaskedEditExtender fails when MaskType="DateTime" after focus out [27214]

$
0
0
AjaxControlToolkit 4.1.51116.0
MaskedEditExtender does not allow the time to be set. When the textbox loses focus the hour and minute are set to the two digit month and two digit day used in the date portion.

<asp:TextBox ID="txtDateTime1" runat="server"></asp:TextBox>
<ajaxToolkit:MaskedEditExtender ID="mskDateTime1" runat="server"
Mask="99/99/9999 99:99" MaskType="DateTime" TargetControlID="txtDateTime1"
UserTimeFormat="None" AcceptAMPM="false">
</ajaxToolkit:MaskedEditExtender>
Comments: The error is in AutoFormatTime function: ... if (this._MaskType == Sys.Extended.UI.MaskedEditType.DateTime) { var arr = this._SplitDateTime(ValueText); var time_arr = arr[1].split(" "); if (time_arr.length == 2) { ValueText = time_arr[0] + " " + time_arr[1]; } else { ValueText = arr[0]; } ... last line should be: ValueText = time_arr[0]

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>