Saturday, March 24, 2012

Tabbing into a textbox with MaskedEditExtender

I am having an issue with the MaskedEditExtender in the Sept 20th ajaxtoolkit release. I have this textbox group:

<asp:Label ID="lblEffort2_KP" runat="server" Text="Y2 "></asp:Label>

<asp:TextBox ID="txtYear2Effort_KP" runat="server" CssClass="textbox" Width="50px" Text='<%# bind("effort_2") %>' TabIndex="5013"></asp:TextBox>
<ajaxToolkit:MaskedEditExtender ID="MEYear2Effort_KP" runat="server" TargetControlID="txtYear2Effort_KP"
InputDirection="RightToLeft" MaskType="Number" Mask="999.99%">
</ajaxToolkit:MaskedEditExtender>

You'll notice I have the inputdirection = right to left. If you tab into this textbox it highlights the mask and when you start entering the number it goes from LeftToRight.

You can see this error also on the microsoft ajax toolkit sample page.

Go here: http://www.asp.net/AJAX/AjaxControlToolkit/Samples/MaskedEdit/MaskedEdit.aspx
and click on the text above the first textbox, the enter number one, and hit tab and you will see the issue. If you just click in the textbox it will work correctly, right to left. Any solution?

Hi Ryan,

I think it is a design pattern. When you press the tab and the cursor displays before the point. While you keep entering , the number will go to right from the left. If you have other suggestions, please post ithere. Also you can post your current idea to it. Our developers will evaluate them seriously and take them into consideration when designing future release of the product.Improving the quality of the products and services is a never-ending process for Microsoft.

Best regards,

Jonathan

No comments:

Post a Comment