hello,
i seem to be running into a problem w/ my my RadMaskedTextBox. it doesnt happen all the time (and i havent determined why yet), but many times when a user starts typing into it, the cursor-focus will automatically jump to the *end* of the box, even after only one character is entered.
my control:
...why is this happening? latest version.
thanks
matt
i seem to be running into a problem w/ my my RadMaskedTextBox. it doesnt happen all the time (and i havent determined why yet), but many times when a user starts typing into it, the cursor-focus will automatically jump to the *end* of the box, even after only one character is entered.
my control:
<Telerik:RadMaskedTextBox id="rmtbItemNumber" Mask="#-#####-##" Width="156" runat="server" /> |
...why is this happening? latest version.
thanks
matt
8 Answers, 1 is accepted
0

matt
Top achievements
Rank 1
answered on 22 Sep 2008, 04:02 PM
i have noticed two other things that may assist:
1) when this is happening, if one uses the mouse to blur the focus away from the RadMaskedTextBox, then click back in, it works normally again.
2) there seems to be a problem w/ setting the ASP.NET focus to the RadMaskedTextBox. im using this:
...but it doesnt work. maybe it does in your isolated test cases Telerik, but its not working in my real, full app.
thanks,
matt
1) when this is happening, if one uses the mouse to blur the focus away from the RadMaskedTextBox, then click back in, it works normally again.
2) there seems to be a problem w/ setting the ASP.NET focus to the RadMaskedTextBox. im using this:
protected void Page_Load(object sender, EventArgs e) |
{ |
rmtbItemNumber.Focus(); |
} |
...but it doesnt work. maybe it does in your isolated test cases Telerik, but its not working in my real, full app.
thanks,
matt
0

Andrew Chandler
Top achievements
Rank 2
answered on 03 Oct 2008, 03:47 PM
I am having the same problem. When I set the control.Focus() in the code behind, it does not work. If I set the focus on other asp:textbox objects, that focus works fine.
0

matt
Top achievements
Rank 1
answered on 03 Oct 2008, 10:28 PM
telerik -- are there any known issues w/ focus setting on the RadMaskedTextBox?
thanks,
matt
thanks,
matt
0
Accepted
Hi guys,
The problem is fixed and the fix will be available with our Q3 release (early November). In the meantime you can use following workaround:
Greetings,
Vlad
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
The problem is fixed and the fix will be available with our Q3 release (early November). In the meantime you can use following workaround:
<%@ Page Language="C#" %> |
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<script runat="server"> |
protected void Button1_Click(object sender, EventArgs e) |
{ |
ScriptManager1.SetFocus(String.Format("{0}_text", RadMaskedTextBox1.ClientID)); |
} |
</script> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head runat="server"> |
<title>Untitled Page</title> |
</head> |
<body> |
<form id="form1" runat="server"> |
<div> |
<asp:ScriptManager ID="ScriptManager1" runat="server" /> |
<asp:Button ID="Button1" Text="Button11" runat="server" OnClick="Button1_Click" /> |
<telerik:RadMaskedTextBox ID="RadMaskedTextBox1" runat="server" /> |
</div> |
</form> |
</body> |
</html> |
Greetings,
Vlad
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

Eric Carlson
Top achievements
Rank 1
answered on 18 Dec 2008, 09:40 PM
I'm using 2008.3.1125 and the issue reported in the original post still exists in Firefox (but IE is OK) with respect to the cursor being at the right side of the MaskedTextBox. You are also able to type characters to the right of the mask which should not happen.
-Eric
-Eric
0
Hi Eric,
I was not able to reproduce the behavior with the latest version. Is the markup provided in the initial post sufficient to replicate the problem?
Best wishes,
Pavel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I was not able to reproduce the behavior with the latest version. Is the markup provided in the initial post sufficient to replicate the problem?
Best wishes,
Pavel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

Eric Carlson
Top achievements
Rank 1
answered on 22 Dec 2008, 03:02 PM
Sorry, to be clear, the issue occurs in Firefox if you call .Focus() on the RadMaskedTextBox in Page_Load. The behavior appears correct if you do not call .Focus().
-Eric
<telerik:RadMaskedTextBox ID="m_rmtbSSN" runat="server" Mask="###-##-####" DisplayMask="###-##-####" /> |
-Eric
0
Hello Eric,
Indeed you are right, and the behavior is not correct in FireFox in this case. To workaround it you can set SelectionOnFocus="CaretToBeginning" for the RadMaskedTextBox. I have updated your Telerik points for bringing this to our attention.
Kind regards,
Pavel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Indeed you are right, and the behavior is not correct in FireFox in this case. To workaround it you can set SelectionOnFocus="CaretToBeginning" for the RadMaskedTextBox. I have updated your Telerik points for bringing this to our attention.
Kind regards,
Pavel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.