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

[Solved] User Control Edit Form Validation

1 Answer 129 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Linus
Top achievements
Rank 2
Linus asked on 07 May 2009, 03:13 PM
Hi!

This is my problem:

I have a Grid with a User Control for editing and it works fine. However, i cannot get client-side validation to work.

In the User Control i have a couple of validators (Regular Expression, Required Field...) and a button with CommandName="Update". However, when the button is pressed a postback occurs even if the input is incorrect. With correct ValidationGroups, the validators will display after the postback.

The problem is that the validators should trigger client-side, as normal. What am i missing since the grid postbacks?

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 11 May 2009, 02:59 PM
Hi Linus,

Could you please elaborate a bit on your scenario? Is your grid or the user control used as edit form ajaxified for instance?

I suggest that you review the below articles elaborating on validation:
http://www.telerik.com/help/aspnet-ajax/grdvalidation.html
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/validation/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/ajax/examples/common/validation/defaultcs.aspx

Sincerely yours,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Linus
Top achievements
Rank 2
Answers by
Iana Tsolova
Telerik team
Share this question
or