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

Issue. Impossible to type text in WPF RadMaskedTextBox (mask is ignored completely)

4 Answers 94 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stanislav
Top achievements
Rank 1
Stanislav asked on 15 Jul 2012, 07:07 AM
Hello Telerik,

I would like to inform you about the following issue that was found during my work with Free Testing Framework.

There is no possibility to type text (.TypeText(...)) in RadMaskedTextBox because mask is ignored completely.

Mask: __-___
Expected: 555-5555
Actual: 5555555__-____ 

Kind Regards,
Stanislav Hordiyenko

4 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 18 Jul 2012, 02:52 PM
Hello Stanislav,

I am not able to reproduce this issue with a RadMaskedInput TextBox in the Telerik WPF demo program. See the following screen recording:

http://screencast.com/t/PiyoajVnkd

I'm using code within Test Studio, but functionally it operates the same. The text was typed directly over the mask. What are we doing differently?


Kind regards,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Stanislav
Top achievements
Rank 1
answered on 18 Jul 2012, 08:30 PM
Hello Anthony,

Thank you for your reply. I was talking about RadMaskedTextBox, not RadMaskedInput. I have also tried to use element independent keyboard typing, but all in vain. The issue is still occurred.

Kind Regards,
Stanislav Hordiyenko
0
Stanislav
Top achievements
Rank 1
answered on 18 Jul 2012, 08:46 PM
Anthony,

I have a small update about this issue. I have used a third party input simulator to send some keys to the control and it works perfectly. The text was typed according to the mask;
radMaskedTextBox.SetFocus();
 
InputSimulator.SimulateModifiedKeyStroke(VirtualKeyCode.CONTROL, VirtualKeyCode.VK_A);
 
InputSimulator.SimulateKeyPress(VirtualKeyCode.VK_1);
InputSimulator.SimulateKeyPress(VirtualKeyCode.VK_2);
InputSimulator.SimulateKeyPress(VirtualKeyCode.VK_5);
InputSimulator.SimulateKeyPress(VirtualKeyCode.VK_1);
InputSimulator.SimulateKeyPress(VirtualKeyCode.VK_1);
InputSimulator.SimulateKeyPress(VirtualKeyCode.VK_2);

The mask was the following: ___-___
The code above works perfectly, so I think that there is an issue.

What exact information do you need to reproduce a bug?
I use trial RadControls ver. 2012.2.607.40 and Testing Framework ver. 2012.1.528.0

Kind Regards,
Stanislav Hordiyenko
0
Accepted
Anthony
Telerik team
answered on 19 Jul 2012, 04:38 PM
Hello Stanislav,

It seems RadMaskedTextBox is obsolete. Here's an excerpt from its support page:

Due to the many known limitations of the current implementation of the RadMaskedTextBox control, with the Q1 2011 release of the RadControls for Silverlight and WPF we announced the new RadMaskedInput suite of controls. The new suite provides 4 different controls - MaskedDateTimeInput, MaskedTextInput, MaskedNumericInput and MaskedCurrencyInput. Each control is designed to allow a specific type of user input thus further enhancing the controlled input support of the RadMaskedInput suite.

In fact I could not even find a sample RadMaskedTextBox to test against in our Telerik WPF demo program, which is why I demonstrated a test against the RadMaskedInput TextBox.

Our recommendation is to update your control, or keep using your work-around if you'd like to stick with the old control.

Kind regards,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Stanislav
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Stanislav
Top achievements
Rank 1
Share this question
or