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

Nested Radgrid Events

3 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike Mack
Top achievements
Rank 1
Mike Mack asked on 05 Oct 2011, 06:31 PM
Hi, so I have a radgrid in the nestedviewtemplate of another radgrid.  It works fine, except I don't know how to add validation to the Edit template for it when someone clicks to edit one of the rows.  Client side validation controls apply to every row that has it open, and I have no idea how to access it's "Add New Record" event.

any ideas?

Thanks

3 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 09 Oct 2011, 06:49 PM
Hi Mike,

Find the below article for more information on how to add validators in the grid edit form:
http://www.telerik.com/help/aspnet-ajax/grid-validation.html

In your scenario you should handle the ItemCreated event for the grid to which edit form you want to add validation.

All the best,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Mike Mack
Top achievements
Rank 1
answered on 12 Oct 2011, 03:34 PM
That will work fine if I only have one grid, but it won't work on a grid nested within another grid (that I can see).
0
Iana Tsolova
Telerik team
answered on 12 Oct 2011, 04:12 PM
Hi Mike,

Is the problem in adding the validators? If not, does using ValidationGroups work?

All the best,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Mike Mack
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Mike Mack
Top achievements
Rank 1
Share this question
or