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

[Solved] validating new rows

1 Answer 130 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.
reema
Top achievements
Rank 1
reema asked on 28 May 2009, 08:57 PM

hi,

how to validate data when new row is added to RadGridView with the following code
this.RadGridView.ChildrenOfType<GridViewNewRow>().First().BeginEdit();  

 

 

I thought we need to add RowEditEnded  & RowValidating event handlers but we already have CellEditEnded &   

CellValidating  to validate the existing rows... assuming that the user should fill all the row cells ...

thx

 

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 29 May 2009, 01:49 PM
Hello reema,

With the current version of the RadGridView you have to handle RowValidating and RowEditEnded explicitly in order to validate new row, which ValidationMode is Row by default. We will make some improvements to validation logic which will allow you to use CellValidating and CellEditEnded events although these events are not so cool for row validation (event args are cell oriented).

Greetings,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
reema
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or