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

Batch Editing grid client side validation

0 Answers 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 31 Jul 2012, 06:17 PM
Hi,

I'm using the batch editing grid with a few fields located outside the grid.  I'd like them all to be submitted at the same time, as part of my validation needs to be that the grid contains at least one row (all of which should be valid).  Is there a way I can check whether or not the grid has validation errors so that I can prevent the form post so the user can fix the row(s) in the grid.  I know I can use grid.hasChanges(), and I could use grid.insertedDataItems and grid.updatedDataItems to determine that I have at least one record, but how can I determine that the record(s) is(are) valid?
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Share this question
or