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

ValidationSummary not displaying validation errors

3 Answers 132 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 30 Jan 2013, 06:05 PM

Hi there,

I've seen a couple of forum posts asking this question but do not see any actual resolutions.  When binding to a collection of objects that implement the INotifyDataErrorInfo interface, we do see proper invalid row notifications and the correct tooltip for the validation error message.  However, no matter what combination of properties I set on the grid, the columns, or the bindings themselves, I can never seem to get a ValidationSummary to display the same messages.  We do not see a problem when validating a form with controls like the RadComboBox.  We do our validation all at once on the objects themselves and manually raise the errors that are found.  Is there a proper combination of settings to have to support this scenario?  It simply looks like the RadGridView is eating up the errors and not sending them out to the container.

Thanks!

Adam.g

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 01 Feb 2013, 02:11 PM
Hello Adam,

You can check this online example demonstrating how the ValidationSummary works with the RadGridView.

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Adam
Top achievements
Rank 1
answered on 12 Feb 2013, 07:01 PM

I must admit, the initial issue I was having here was a silly mistake of not laying out the page such that the ValidationSummary was visible. :)

However, the issue still stands of properly having the RadGridView work with the ValidationSummary.  The issue lies, I think, in the notification of the cells and their edit elements.  For our setup, we currently have the grid set to ValidatesOnDataErrors="InViewMode".  When this is set, and we do our validation pass on the ViewModel, the erroneous fields and their corresponding cells correctly display in the ValidationSummary.  However, upon editing one of the erroneous cells, an additional message shows up in the ValidationSummary, and upon leaving the field, another messages shows up, ad infinitum.  The normal Silverlight controls, such as the ComboBox or masked input controls, do not do this.  It seems as though each cell operation notifies.

Is this the expected behavior?  I have exhausted many of my options so far that I can think of and have not been able to configure or hack my way around this behavior so any assistance would be appreciated.

Thanks!
Adam.g
0
Yoan
Telerik team
answered on 15 Feb 2013, 05:36 PM
Hello Adam,

I have tested your scenario (using the binaries from our Q3 2012 SP1) but I could not reproduce the issue. For your convenience, I have attached the sample project. Would it be possible to modify it in order to reproduce the problem and resend it back to me ?

Thank you in advance!

Greetings,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Adam
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Adam
Top achievements
Rank 1
Yoan
Telerik team
Share this question
or