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

Binding ValidationState

5 Answers 89 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vitalii
Top achievements
Rank 2
Vitalii asked on 03 Oct 2013, 10:12 AM
Subj.
It says, there's no setter for ValidationState, and in samples RadTextBox.ChangeValidationState() is used. 
However, i'd like to do validation not in codebehind, but in the viewmodel, is there any workarounds?

One possible solution just off the top of my head is to do validation in VM, and send a message to the view with results.

5 Answers, 1 is accepted

Sort by
0
Vitalii
Top achievements
Rank 2
answered on 05 Oct 2013, 06:54 PM
Just found DataFormValidator.
I guess, it worth be mentioned somewhere in samples :)
0
Accepted
Deyan
Telerik team
answered on 07 Oct 2013, 02:37 PM
Hello Vitalii,

There is this article about validation in RadDataForm in our online help:

http://www.telerik.com/help/windows-phone/raddataform-features-validation.html

You can explore different options when it comes to validating input there.

Regards,
Deyan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Vitalii
Top achievements
Rank 2
answered on 07 Oct 2013, 02:44 PM
Hi Deyan,

Indeed.
Wondering, how i managed to miss it.. thanks :)
0
Alex
Top achievements
Rank 1
answered on 10 Jun 2014, 02:43 AM
What if I am not using the DataForm, is there any other way to bind from the VM to ValidationState of a RadTextBox?

0
Vitalii
Top achievements
Rank 2
answered on 10 Jun 2014, 08:47 AM
Yep, i did it, but i'm not satisfied with it: its quite slow so i'd prefer not to share it. I'm considering to switch to DataForm once i'll have some free time.
Tags
TextBox
Asked by
Vitalii
Top achievements
Rank 2
Answers by
Vitalii
Top achievements
Rank 2
Deyan
Telerik team
Alex
Top achievements
Rank 1
Share this question
or