This is a migrated thread and some comments may be shown as answers.

RadMaskedTextBox - focus goes to end in older IE

3 Answers 68 Views
Input
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 23 May 2011, 03:08 PM
We're having issues with IE6 and IE7 and the MaskedTextBox It seems that the user can type in one character and the cursor jumps to the end. In IE8 and FF, it works just fine.

I searched the forums, and only found one possible solution, and it didn't work. We're using build 413.35

Here is the markup code:

<telerik:RadMaskedTextBox Mask="(###) ###-#### ext####" ID="rmtPhone"
             runat="server" MaxLength="25" Width="120px"
SelectionOnFocus="CaretToBeginning" />
We've tried SelectionOnFocus="None" and "CaretToBeginning" But I'm not sure that's the problem since it works ON FOCUS to the next charcter, it just doesn't like more than one character entered at a time for older IE browsers.

3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 24 May 2011, 07:17 AM
Hello Mark,

Indeed the reported issue can be observed in the 2011.1.413 release (Q1 2011 SP1). The good news is that the problem is already fixed in the 2011.1.519 (Q1 2011 SP2) version of the controls. In addition, this release include several other bug fixes for RadMaskedTextBox. My suggestion is to upgrade to it and verify whether any other issues exist.

I hope this helps.

All the best,
Martin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Sergiu
Top achievements
Rank 2
answered on 02 Feb 2012, 05:43 PM
Hey guys, I am experiencing this exact same issue. I am using the Q3 2011 SP1 release. I can confirm that this issue only happens when the RadMaskedTextBox is in a ContentPlaceHolder of a MasterPage. Stand alone pages don't seem to exhibit this problem. Any help is greatly appreciated!
0
Vasil
Telerik team
answered on 07 Feb 2012, 09:55 AM
Hi Sergiu,

I used this code, and it is working correctly in IE7. Could you tell us what is different in your scenario?

Site1.Master:
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="WebApplicationForTests.Site1" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server"></telerik:RadScriptManager>
    <div>
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
         
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>

WebForm2.aspx:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
  CodeBehind="WebForm2.aspx.cs" Inherits="WebApplicationForTests.WebForm2" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <telerik:RadMaskedTextBox Mask="(###) ###-#### ext####" ID="rmtPhone" runat="server"
    MaxLength="25" Width="120px" SelectionOnFocus="CaretToBeginning" EnableSingleInputRendering="false" />
</asp:Content>


Regards,
Vasil
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Input
Asked by
Mark
Top achievements
Rank 1
Answers by
Martin
Telerik team
Sergiu
Top achievements
Rank 2
Vasil
Telerik team
Share this question
or