:: Forum >>

Validating an Entire Row

Just wondering how others go about validating an entire row in a Grid.

I know that if a cell's contents is changed, the validation event fires.
However, I have situations where certain cells/fields are required - and if the user never enters that cell, then a validation event never gets fired.

I guess I need some kind of row-level validation.
I suppose that any time a new row is added or a value is changed on that row, I can mark that row as "dirty" and then perform validation when the user attempts to change rows.

Is that standard operating procedure?
Tuesday, May 27, 2008
Thursday, May 29, 2008
I suppose you could have a hidden field with a 1 or 0 value. Pick one of them as validated and the other as unvalidated.

However, I suspect the real issue will be when do you plan to validate new rows? If its upon access of another row, what happens if they scroll away and there are hundreds or thousands of rows?

There are probably other issues to consider too. Might be simpler to have some sort of add button somewhere on a page.
Friday, May 30, 2008

This topic is archived.

Back to support forum

Forum search