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

[Solved] Validation failure in RADGridView blocks access to other cells in the grid

1 Answer 159 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Priyanka
Top achievements
Rank 1
Priyanka asked on 20 Jul 2011, 07:21 PM
I have a RADGridView in which rows can be added/deleted/edited with validation support. Whenever a validation fires on a cell, I am not able to come out of the cell and perform any action on the grid. I am able to access other controls on the same page other than any part of this grid, if I set my grid's  ActionOnLostFocus property to "None". The last column in each row of my grid is a DynamicHyperlinkColumn which provides a "Delete" button to delete this row. So that if there are errors in a row and the user doesn't want to enter all valid values, he can simply delete this row with the help of "Delete" button. I cannot use the "Delete" button if there is any validation error in any of the cells.

Is there a way out to let the cell higlighted with red in case validation failure but at the same time allow access on other cells in the same grid??

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 26 Jul 2011, 04:01 PM
Hi Priyanka,

Sorry for the late reply.

All you have to do is to use asynchronous validation. In order to use it your business object should implement IDataErrorInfo + IPropertyChanged or INotifyDataErrorInfo interfaces and use RadGridView.ValidatesOnDataErrors property. You can take a look at this online help topic for more information.
I could be more precise if you provide me with a little bit more details about your scenario (a sample project will be great).

Best wishes,
Nedyalko Nikolov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
GridView
Asked by
Priyanka
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or