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

RadGrid and Regex

1 Answer 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
CarlosCisneros
Top achievements
Rank 1
CarlosCisneros asked on 11 Sep 2008, 01:28 PM
Hi.

i have a radgrid and a i need to validate before insertion or update some fields with a regular expression, how can i do this.


thanks in advanced.

1 Answer, 1 is accepted

Sort by
0
Accepted
Missing User
answered on 11 Sep 2008, 01:44 PM
Hi Carlos,


You can use RegularExpressionValidator. The RegularExpressionValidator control checks whether the value of an input control matches a pattern defined by a regular expression. This type of validation allows you to check for predictable sequences of characters, such as those in e-mail addresses, telephone numbers, and postal codes. You can review the following online demo:

http://demos.telerik.com/aspnet/Prometheus/Grid/Examples/DataEditing/Validation/DefaultCS.aspx



Best wishes,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
CarlosCisneros
Top achievements
Rank 1
Answers by
Missing User
Share this question
or