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

RadGridView and the DataFormValidationSummary

7 Answers 99 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 08 Jul 2013, 10:21 PM
Hi,
Is there any way to integrate the DataFormValidationSummary control with the RadGridView?
Thanks in advance,
Steve

7 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 09 Jul 2013, 08:56 AM
Hello Steve,

Will it be possible to carify what the exact behavior you want to get is ? Do you want just to display the errors in a separate control below the grid for example ? 

Regards,
Maya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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
Steve
Top achievements
Rank 1
answered on 09 Jul 2013, 05:27 PM
Yes, in as a separate control under the grid, as it is with the data form.  The main thing is how to map the grid validation to it.
Thanks,
Steve
0
Maya
Telerik team
answered on 11 Jul 2013, 11:43 AM
Hello Steve,

You will need to expose a collection property to keep track of the errors in the grid and bind it to the validation summary. However, you can just create an ItemsControl for example and bind it to those errors without the need to work with DataFormValidationSummary. 

Regards,
Maya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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
Steve
Top achievements
Rank 1
answered on 12 Jul 2013, 09:26 PM
I assume that for validating user input, the best course of action is to handle the CellValidated event and add the ValidationResult to a collection, but if existing data (from a data source) is invalid (exceeds valid string length), how can I get at that ValidationResult?
Thanks in advance,
Steve
0
Maya
Telerik team
answered on 17 Jul 2013, 11:25 AM
Hello Steve,

Will it be possible to clarify how you get this error ? Do you work with DataAnnotation and set Length restriction or you perform check in the property setter for example ?  

Regards,
Maya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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
Steve
Top achievements
Rank 1
answered on 17 Jul 2013, 05:14 PM
I use DataAnnotations.
Thanks,
Steve
0
Maya
Telerik team
answered on 18 Jul 2013, 12:42 PM
Hello Steve,

In this case my recommendation is to take a look at one of those articles (link 1, link 2, link 3).  

Regards,
Maya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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 >>
Tags
GridView
Asked by
Steve
Top achievements
Rank 1
Answers by
Maya
Telerik team
Steve
Top achievements
Rank 1
Share this question
or