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

RadGrid CompareValidator

1 Answer 135 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 27 Apr 2009, 12:27 PM
I have a RadGrid with Auto Insert/Update/Delete on using EditForm mode.  I want to add a compare validator between a field called lowvalue and highvalue.  What is the best way to do this.
lowvalue and highvalue I am using GridNumericColumn. 

I am at a crunch in the project so I will take the easiet approach client/server side doesn't matter, I just need to make sure the low value is less than or equal to the high value if the high value is not null or empty
and the high value is greater than or equal to the low value if the low value is not null or empty.  If the validation fails I need to display an error message in the EditMode of the form and prevent the insert/update.

Note: If you suggest using an ItemTemplate or EditTemplate please also provide a complete reference and/or demo.  I have been trying to research the EditTemplate but I have not found any good tutorials.  I am a total novice at the ItemTemplate/EditTemplate approach.

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 28 Apr 2009, 06:10 AM
Hello Edward,

To avoid duplicate posts, we will continue our communication in the other (support ticket)
post that you have opened on the matter.
Find more information about how to achieve the desired functionality in the following links: 
Validation
Flexible Server-side Validation

Regards,
Pavlina
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
Edward
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or