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

Error typing on RadMaskedTextBox

5 Answers 133 Views
Input
This is a migrated thread and some comments may be shown as answers.
Henrique Duarte
Top achievements
Rank 1
Veteran
Henrique Duarte asked on 08 Dec 2007, 02:49 PM
I''m tring the new RadMaskedTextBox "Prometheus" with VS2008RTM.

After type a char, the caret is moved to the end of RadMaskedTextBox and then, I get an error for every keypressed.

<telerik:RadMaskedTextBox ID="UserName" runat="server" Mask="######-#" /> 

Edit:

The problem occurs when setting the attribute defaulfocus on form element:

<form id="form1" runat="server" defaultfocus="RadMaskedTextBox1_text"

Was a workaround for the previous version ...
:S

Suggestions!?

Thanks in advance!

[]'s

Henrique

5 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 10 Dec 2007, 09:39 AM
Hello Henrique,

We are unable to reproduce the problematic behavior you are experiencing on your end -- please review the attached sample application and let us know how we could observe the issue locally.


Kind regards,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Deon
Top achievements
Rank 1
answered on 29 Oct 2008, 10:51 PM
I'm using Q2 2008 controls and I've tested your example.  The defaultfocus puts the cursor at the first character.  When I type, the first character is displayed and then the cursor is moved to the end of the radmaskedtextbox.  Any other characters are then ignored.
0
Pavel
Telerik team
answered on 30 Oct 2008, 02:20 PM
Hello Deon,

Indeed the behavior can be observed. With the Q3 Beta release of the controls you can focus the control in the server-side Page_Load event handler like this which is working as expected:

protected void Page_Load(object sender, EventArgs e) 
    RadMaskedTextBox1.Focus(); 


Sincerely yours,
Pavel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Deon
Top achievements
Rank 1
answered on 06 Nov 2008, 11:05 PM
Thanks for the reply.

I now have the Q3 controls.  Your example works as it should.  But as soon as I add a mask to your example  (IE Change the mask to accept a phone number.) it resorts back to the behaviour above. 

Is there anything else you can suggest?

Thanks
0
Pavel
Telerik team
answered on 10 Nov 2008, 08:18 AM
Hello Deon,

I have prepared a small sample which is working as expected. Give it a try and let us know if you have further questions.

Sincerely yours,
Pavel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Input
Asked by
Henrique Duarte
Top achievements
Rank 1
Veteran
Answers by
Giuseppe
Telerik team
Deon
Top achievements
Rank 1
Pavel
Telerik team
Share this question
or