RadGrid CompareValidator

2 posts, 0 answers
  1. Edward
    Edward avatar
    20 posts
    Member since:
    Mar 2009

    Posted 27 Apr 2009 Link to this post

    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.
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 28 Apr 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top