Calling a method from a RequiredFieldValidator for RadDatePicker

2 posts, 0 answers
  1. Pocho
    Pocho avatar
    1 posts
    Member since:
    Dec 2013

    Posted 18 Feb 2015 Link to this post

    Hi All,
    I have a RadDatePicker control and I need to validate the date. The user must enter a valid date and I have to check the date is not greater that the DataTime.Now value.
    I am trying to build a method to handle both cases and send the corresponding error message. It looks I do not have the choice to call a method from the RequiredFieldValidator control.
    Do you have any suggestion to handle this case?
  2. Vasil
    Vasil avatar
    1604 posts

    Posted 20 Feb 2015 Link to this post

    Hello Yuri,

    You can place RequiredFieldValidator and RangeValidator at the same time. If the value is empty, the RequiredFieldValidator will fire it's message, it there is some inserted value, the RangeValidator will fire.

    If you need to apply more complex logic, implement a CustomValidator.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top