ValidationSummary and invalid fields?

3 posts, 1 answers
  1. Jeff
    Jeff avatar
    64 posts
    Member since:
    Dec 2011

    Posted 05 Apr 2012 Link to this post

    I have a form with some fields.  One of the fields is an ordinary TextBox that is bound to a variable of type Decimal.

    When I type letters into the field, it's highlighted in red, to indicate that it has failed validation, but the validation error is not added to the form's ValidationSummary, and ValidationSummary.HasErrors remains True.

    Am I simply misunderstanding what ValidationSummary is supposed to do?
  2. Answer
    Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 05 Apr 2012 Link to this post

    Hi Jeff,

    Would you please shed some more light on your scenario? Are you using autogenerated fields, or custom DataTemplates? If it is the latter option, have set bindings' properties ValidatesOnExceptions and NotifyOnDataErrors to true? As we have never encountered such an issue with RadDataForm, it would very difficult for us to reproduce it by having such limited information. Would you please send us a small running project that reproduces this unwanted behavior?

    Greetings,
    Ivan Ivanov
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jeff
    Jeff avatar
    64 posts
    Member since:
    Dec 2011

    Posted 05 Apr 2012 Link to this post

    The circumstances in which this is happening are complicated.

    I tried a simple example, and the validation error displayed properly.

    I'm going to start adding in the complications, one at a time, until something breaks. It's likely to take a while.

    ==== edited ====
    I found the problem.
Back to Top