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

Required GridBoundColumn

2 Answers 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 13 Mar 2011, 02:32 AM
Hi.

Is there no easy way to set a GridBoundColumn as required when in edit mode? Just an attribute setting or forcing the length to be greater than zero or something? It would be easier than having to set up edit and item templates everytime.

Thanks
Chris

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 15 Mar 2011, 02:26 PM
Hello,


Here I found documentation on adding a validator to an edit field in Telerik RadGrid. I hope this would help you.
Validation


-Shinu.
0
Chris
Top achievements
Rank 1
answered on 15 Mar 2011, 08:47 PM
Thanks Shinu.

I was looking for (or maybe suggesting to Telerik) that there be a simple attribute of GridBoundColumn to use instead of the long winded method we are stuck with as we can see from the article you kindly supplied. Something like requiredfield="true" and requiredfieldMessage="You must enter something in this field".

Regards
Chris
Tags
Grid
Asked by
Chris
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Chris
Top achievements
Rank 1
Share this question
or