Print Page | Close Window

ValidationErrors Sequence

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3681
Printed Date: 03-Apr-2025 at 5:41am


Topic: ValidationErrors Sequence
Posted By: erika
Subject: ValidationErrors Sequence
Date Posted: 01-Oct-2012 at 1:49am
Hi all,

Is there any way i could put sequence in the validationerror collection? E.g. I have several fields in the form, ID, Name, Group, etc. I want all validation errors related to ID be collected as the top errors, then continued with Name, etc. Currently, seems the required validation is verified first to all fields, then my other custom verifiers. 

Is there any way to sort the collection? Thanks.

Regards,
Erika



Replies:
Posted By: sbelini
Date Posted: 04-Oct-2012 at 12:09pm
Hi Erika,
 
Unfortunatelly, you can't set the order the validation occurs.
Is there any particular reason the validation order is required?
Note that while the order of the validation process can't be changed, you can always sort the validation collection result by your specific criteria.
 
sbelini.



Print Page | Close Window