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

How to validate grid edit forms

2 Answers 118 Views
Grid
This is a migrated thread and some comments may be shown as answers.
andieje
Top achievements
Rank 1
andieje asked on 29 Jul 2009, 11:32 PM
Hello

I would like to add some validators to the edit form that is generated automatically by the rad grid when you go into edit mode.

I have seen this help topic on the subject.
http://www.telerik.com/help/aspnet-ajax/grdvalidation.html

I do not want to add the validators programmatically. I would prefer to add them manually. I believe i can add them manually to the edit item template of a grid template column. However all of the columns in my grid are simple bound columns. Does this mean i have to convert all of my bound columns into template columns in order to add the validators? This is quite a lot of work. I was hoping it would be easier than this

thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 30 Jul 2009, 05:57 AM
Hello Andrea,

A suggestion is to use a FormTemplate EditForm instead of the AutoGenerated EditForm with the column editors and then manually add validators for the required GridColumnEditors, rather than converting all your bound columns to templates columns.
Form Template Edit Form

Thanks
Princy.
0
andieje
Top achievements
Rank 1
answered on 30 Jul 2009, 01:28 PM
so you do have to convert all of the bound columns to template columns then :(
Tags
Grid
Asked by
andieje
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
andieje
Top achievements
Rank 1
Share this question
or