This is a migrated thread and some comments may be shown as answers.
Add .Clear() method to WPF RadMaskedTextBox
2 Answers 42 Views
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:06 AM
Hello Telerik,

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

Kind Regards,
Stanislav Hordiyenko

2 Answers, 1 is accepted

Sort by
0
Accepted
Anthony
Telerik team
answered on 18 Jul 2012, 02:41 PM
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
0
Stanislav
Top achievements
Rank 1
answered on 18 Jul 2012, 06:52 PM
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
Asked by
Stanislav
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Stanislav
Top achievements
Rank 1
Share this question
or