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

5 posts, 1 answers
  1. Stanislav
    Stanislav avatar
    1 posts
    Member since:
    May 2012

    Posted 15 Jul 2012 Link to this post

    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
  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 18 Jul 2012 Link to this post

    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
  3. Stanislav
    Stanislav avatar
    1 posts
    Member since:
    May 2012

    Posted 18 Jul 2012 Link to this post

    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
  4. Stanislav
    Stanislav avatar
    1 posts
    Member since:
    May 2012

    Posted 18 Jul 2012 Link to this post

    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
  5. Answer
    Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 19 Jul 2012 Link to this post

    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
Back to Top