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

Using a ValidationSummary control with RadGrid validation

2 Answers 255 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve Gray
Top achievements
Rank 1
Steve Gray asked on 01 Apr 2011, 02:04 AM
Sirs:
I'm trying to code server side validation like you document here:
http://www.telerik.com/help/aspnet/grid/grdvalidation.html
under the 'Adding a validator to EditItemTemplate of GridTemplateColumn' section.

I'm trying to get the code to use a ValidationSummary control so I can show a more detailed error message at the top of the grid. Is this possible?



2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Apr 2011, 10:30 AM
Hello Steve,

I suggest you examine the online demo of RadGrid for ASP.NET AJAX pointed below which explains how to customize and synchronize its validation mechanism with the overall validation on the page in which it resides:

Grid / Flexible Server-side Validation

Thus you should be able to configure your asp ValidationSummary control to display the error messages from the required validators inside the grid template columns.

Thanks,
Shinu.
0
Steve Gray
Top achievements
Rank 1
answered on 08 Apr 2011, 05:54 PM
That got me on the right track.
The answer was that I needed to add the validationSummary control to the Ajax Updated controls


            <telerik:AjaxSetting AjaxControlID="ValidationSummary1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ValidationSummary1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
Tags
Grid
Asked by
Steve Gray
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Steve Gray
Top achievements
Rank 1
Share this question
or