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

[Solved] Deep the form populated on Insert Validation

1 Answer 119 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jdawg
Top achievements
Rank 1
Jdawg asked on 09 May 2008, 04:55 PM
We have a RadGrid with an edit type of template.  Inside the template we have a validation summary and each control has it's own asp.net validators utilizing server side validation.  We have business logic validation in a presenter class and when validation fails a custom validator is created and added to the page validators causing the validation to show up in the validation summary.  This work fine when doing updates but no when inserting. 

The validation summary does not show and the form is cleared of data.  Inside the OnInserted event we set the KeepInInsertMode to true and the ExceptionHandled to true.  The template stays open but the validation summary is not shown.  We have made sure the viewstate is on. 

How can we keep the form populated and show the validation summary or is there a different solution?

Any help would be appreciated.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 May 2008, 06:00 AM
Hi,

Go through the following demo link.
Flexible server-side validation

Shinu.
Tags
Grid
Asked by
Jdawg
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or