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

Grid, ItemTemplate + EditItemTemplate + Password Validation?

2 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 06 Aug 2008, 11:34 PM
I have a RadGrid with users, privileges, etc. as the rows.  In edit mode, I want to allow passwords to be changed.  So I have form edit mode enabled, and I have <ItemTemplate>...</ItemTemplate> and <EditTemplate>...</EditTemplate>  In the EditTemplate, I have two password fields.

My question is how can I use the built-in validators to compare the passwords?  I can't get to the "other" control because it is a template (I can't set the ControlToValidate property.)  I tried custom validation and I get the "ConfirmPassword" (which is set to validate) as the args value, but how do I find the corresponding row which is

Added (new)
Edited (old)

I need to handle both.

A pointer to an example would be greatly appreciated.  Validating ANY two user values in a form edit against each other is fine.

Thanks,
Tim

2 Answers, 1 is accepted

Sort by
0
Tim
Top achievements
Rank 1
answered on 07 Aug 2008, 09:08 PM
Update:

I was not able to set the ControlToCompare Property not the ControlToValidate property.


Tim

0
Missing User
answered on 11 Aug 2008, 02:26 PM
Hi Tim,

Please find attached a sample web application that demonstrates the needed approach.

Regards,
Plamen
the Telerik team

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