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

Recreating the RadMaskedTextInput error handling

2 Answers 216 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Veteran
Lee asked on 24 Mar 2021, 05:10 PM

Hey all,

I'm dense when it comes to xaml, wpf, and telerik. I'm looking to extend a regular Textbox with custom validation logic, which is all well and good. What I now want to do is handle errors, like RadMaskedTextInput does, where I can trip the error state/throw a validation error, have the box outlined red with the red arrow on the top right, and the error tool tip pop up when hovering.

There's good documentation that handles each problem individually, but the matter of tying it all together, and which error handling to choose, is the issue. If I could do the error handling/display of RadMaskedTextInput, or other telerik controls, without needing to use it, that would be great.

Thanks,

Lee

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 29 Mar 2021, 05:32 AM

Hello Lee,

You can find a runnable project showing the data validation features described in the help documentation on GitHub.

https://github.com/telerik/xaml-sdk/tree/master/MaskedInput/DataValidation

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Lee
Top achievements
Rank 1
Veteran
answered on 30 Mar 2021, 07:57 PM

Thanks Martin,

The root of the issue is my lack of WPF knowledge. I believe what I wanted to do was copy the error styling the telerik controls had rolled into them. Instead I'm using the telerik controls explicitly, and going from there.

Thanks again,

Lee

Tags
General Discussions
Asked by
Lee
Top achievements
Rank 1
Veteran
Answers by
Martin Ivanov
Telerik team
Lee
Top achievements
Rank 1
Veteran
Share this question
or