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

require field validator on Telerik Radgrid with GridHTMLEditorColumn

2 Answers 13 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Syed
Top achievements
Rank 1
Syed asked on 09 Dec 2013, 01:31 AM

Hi All

I have a Telerik Radgrid with GridHTMLEditorColumn inside it. I would like to put the require field validator so that user must fill the value inside GridHTMLEditorColumn.

Can someone please let me know how to put require field validator on GridHTMLEditorColumn.

Many thanks

Syed

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 09 Dec 2013, 06:28 AM
Hi Syed,

Please try the following code snippet to have RequiredFieldValidator for GridHTMLEditorColumn:

ASPX:
<telerik:GridHTMLEditorColumn UniqueName="Country" DataField="Country" HeaderText="Country">
    <ColumnValidationSettings EnableRequiredFieldValidation="true">
        <RequiredFieldValidator ForeColor="Red" ErrorMessage="This field is required"></RequiredFieldValidator>
    </ColumnValidationSettings>
</telerik:GridHTMLEditorColumn>

Thanks,
Princy
0
Syed
Top achievements
Rank 1
answered on 09 Dec 2013, 07:35 PM
Hi Princy
Thanks it is working
Cheers
Syed
Tags
Grid
Asked by
Syed
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Syed
Top achievements
Rank 1
Share this question
or