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

[Solved] Best way to validate Grid values in edit and insert mode

1 Answer 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 13 Jun 2009, 08:11 PM
Hi

I am using RadGrid (Ajax) Q1 2009 , and want to use the automatic Edit and Insert mode as far as possible to avoid
having to add FormView or Details view, making the most of the RadGrid's smart features.  (Productivity)

What is the most efficient way to ensure that required fields are not empty in this scenario?

I have set ValidationSettings to EnableValidation but I guess this only checks that the data type matches the
database column type.

Thanks

Clive

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 Jun 2009, 04:11 AM
Hi Clive,


Since you are using automatic edit  I  would suggest adding validators via Item Created event to ensure that required fields are not empty.Here  is a help documnet that will help you achieve the same.

http://www.telerik.com/help/aspnet-ajax/grdvalidation.html

Do let me know of any further issues.

Thanks,
Princy



Tags
Grid
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or