Add .Clear() method to WPF RadMaskedTextBox

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

    Posted 15 Jul 2012 Link to this post

    Hello Telerik,

    It would be great to add .Clear() method to WPF RadMaskedTextBox because .TypeText(...) method only appends value.

    Kind Regards,
    Stanislav Hordiyenko
  2. Answer
    Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 18 Jul 2012 Link to this post

    Hello Stanislav,

    I agree that would be useful and I filed a feature request for it. You can track the PITS Issue here: Public URL.

    In the meantime you can use key presses to "Select All" and then type:

    rmi.User.Click();
     
    Manager.Desktop.KeyBoard.KeyDown(Keys.ControlKey);
    Manager.Desktop.KeyBoard.KeyPress(Keys.A);
    Manager.Desktop.KeyBoard.KeyUp(Keys.ControlKey);
     
    rmi.TypeText("1234567890", 5);


    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. The workaround works perfectly. I look forward to get a new release of this framework.

    Kind Regards,
    Stanislav Hordiyenko
Back to Top