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

Closed Issue: Masked Edit extender behaviour in showModalDialog (a bug?!) [27018]

$
0
0
I am using masked edit extender to place a mask for date and time and I must say its a fantastic extender. However I have an issue.

I have placed the masked edit extender in an aspx file which is shown using Javascript showModalDialog. The properties of masked edit extender are as follows

<asp:MaskedEditExtender ID="maskExtender1" runat="server" ClearMaskOnLostFocus="False" MaskType="DateTime" Mask="99/99/9999 99:99" TargetControlID="Textbox1" AcceptAMPM="True" AutoComplete="False" />

As you can see the masked edit extender is attached to a textbox named Textbox1. During Page_Load, the Textbox1 is empty which means it displays "__/__/____ __:__ AM" as its contents. Now I set focus on Textbox1 and do not enter anything. Then I click in another control on the same aspx page (of course). Then all of a sudden, contents of Textbox1 become "0_/__/____ __:__ AM". Notice that a 0 has appeared in contents of Textbox1 even though I have not typed anything. Now, I click inside Textbox1 again and move focus to another control without entering anything in Textbox1. Then, out of blue, contents of Textbox1 become "00/0_/____ __:__ AM". Notice 00 are there in day and a single 0 in month part. I repeat the process of clicking inside Textbox1 and moving focus to another control without entering anything. Once again, contents of Textbox1 become "00/00/0___ __:__ AM". I repeat the process further and contents become "00/00/0000 __:__ AM". If I repeat the process again, contents of Textbox1 stay at "00/00/0000 __:__ AM" (whew!). So, hours and minutes are not filled.

Thus, the masked edit extender is "generating" characters ("0") in its target control without end-user entering anything in the target control. I have setting different properties of masked edit extender to no avail.

I am using AJAX control toolkit version 3.5.50731.0 (as present in AjaxControlToolkit.dll file) and Visual Studio 2008.
Comments: Please upgrade to the latest version of AJAX Control Toolkit v15.1. If the problem remains, feel free to post a new issue.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



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