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

Error message in RadGrid Popup

1 Answer 182 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andreas Dahlén
Top achievements
Rank 1
Andreas Dahlén asked on 19 Jan 2011, 10:35 AM
I have a RadGrid where EditMode="popup" and the contents of the form is created dynamically by RadGrid.

If there is an error when the saves the data I'd like to show a message in the popup form and keep it open.

In the event UpdateCommand, i'm doing my logic.  If I get an error I set e.Canceled  = true and the popup stays open.
I haven't figured out how to add a message (for example a new LiteralControl) to the popup form.
Any ideas on how to do it?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 19 Jan 2011, 12:34 PM
Hello Andreas,

An easy method to validate data in edit form is using validation control for the controls in edit form. Please take a look at the following demo and see if it helps.
Grid / Flexible Server-side Validation

Thanks,
Princy.
Tags
Grid
Asked by
Andreas Dahlén
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or