Binding ValidationState

6 posts, 1 answers
  1. Vitalii
    Vitalii avatar
    104 posts
    Member since:
    Jul 2013

    Posted 03 Oct 2013 Link to this post

    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.
  2. Vitalii
    Vitalii avatar
    104 posts
    Member since:
    Jul 2013

    Posted 05 Oct 2013 Link to this post

    Just found DataFormValidator.
    I guess, it worth be mentioned somewhere in samples :)
  3. DevCraft banner
  4. Answer
    Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 07 Oct 2013 Link to this post

    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 >>
  5. Vitalii
    Vitalii avatar
    104 posts
    Member since:
    Jul 2013

    Posted 07 Oct 2013 Link to this post

    Hi Deyan,

    Indeed.
    Wondering, how i managed to miss it.. thanks :)
  6. Alex
    Alex avatar
    14 posts
    Member since:
    Nov 2013

    Posted 09 Jun 2014 in reply to Deyan Link to this post

    What if I am not using the DataForm, is there any other way to bind from the VM to ValidationState of a RadTextBox?

  7. Vitalii
    Vitalii avatar
    104 posts
    Member since:
    Jul 2013

    Posted 10 Jun 2014 Link to this post

    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.
Back to Top
DevCraft banner