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

[Solved] GridView Row validation

1 Answer 176 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.
Monte Baker
Top achievements
Rank 2
Monte Baker asked on 10 Dec 2010, 03:11 PM

We have a silverlight application that is using the MVVM pattern. The view is using the RadGridView control which has its itemsource property bound to a property on its respective view model and the columns are bound to properties in that object. When a user makes a change on the UI, the grid works properly; however, when the value for a bound column is set in the viewmodel the row is showing in red as invalid. We have hooked on to several grid events to trouble shoot this with no luck. We get the row validating and validated events which show the row as valid; however, once the edit ended event is fired the row is showing as invalid.


Our bottom line issue is that we are unable to capture what the validation error is on this row.  Is there any way we can bubble up the event to a watch?  can you point us towards the event we should be looking for.  I can't post the source code as it is to large, but i can post snippits or screenshots if that would help you understand our issue.

Thank you,

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 14 Dec 2010, 11:46 AM
Hello Monte Baker,

Generally there are 6 events involved in RadGridView validation mechanism CellValidating, CellValidated, CellEditEnded and same events for row level. As I understand you need RowValidated event and you could find the errors returned by ValidationResults property.
Let me know if you need further assistance.

Regards,
Nedyalko Nikolov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
Monte Baker
Top achievements
Rank 2
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or