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

ValidationSummary and invalid fields?

2 Answers 65 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 05 Apr 2012, 04:48 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Ivanov
Telerik team
answered on 05 Apr 2012, 05:01 PM
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 >>
0
Jeff
Top achievements
Rank 1
answered on 05 Apr 2012, 06:32 PM
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.
Tags
DataForm
Asked by
Jeff
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or