When using the MaskedEditExtender with a Mask such as "999,999.99" and ClearMaskOnLostFocus="false" all values after the comma separator are erased when prepopulating (databinding) the TextBox control. See example below:
<asp:TextBox ID="Price" runat="server">9,999.00</asp:TextBox>
<cc1:MaskedEditExtender ID="PriceMask" runat="server" AutoComplete="false" ClearMaskOnLostFocus="false" DisplayMoney="Left" InputDirection="RightToLeft" Mask="9,999,999.99" MaskType="Number" TargetControlID="Price">
</cc1:MaskedEditExtender>
When viewed in the browser you will see "$_,___,999.00" as the value in the TextBox. I've tried removing/changing several properties to include AutoComplete and InputDirection which have no affect on this problem. The only solution (workaround) is to set ClearMaskOnLostFocus="true" (default).
Comments: Issues is closed as we are not able to reproduce. Please reopen with sample code if someone still getting problem.
<asp:TextBox ID="Price" runat="server">9,999.00</asp:TextBox>
<cc1:MaskedEditExtender ID="PriceMask" runat="server" AutoComplete="false" ClearMaskOnLostFocus="false" DisplayMoney="Left" InputDirection="RightToLeft" Mask="9,999,999.99" MaskType="Number" TargetControlID="Price">
</cc1:MaskedEditExtender>
When viewed in the browser you will see "$_,___,999.00" as the value in the TextBox. I've tried removing/changing several properties to include AutoComplete and InputDirection which have no affect on this problem. The only solution (workaround) is to set ClearMaskOnLostFocus="true" (default).
Comments: Issues is closed as we are not able to reproduce. Please reopen with sample code if someone still getting problem.