radDatePicker: Invalid date

4 posts, 0 answers
  1. Markus
    Markus avatar
    196 posts
    Member since:
    Dec 2007

    Posted 24 Jan 2008 Link to this post

    If you enter a string such as "abc" in date time picker with Office2007 skin, the border of the control changes color, but "SelectedDateChanged" will not fire. Can I change the behaviour so the event always fire, no matter which value I enter?
  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 24 Jan 2008 Link to this post

    Hi Markus,

    SelectedDateChanged would not be fired if the control was initially empty as after entering an invalid date the selection state would be still unchanged i.e. no valid selected date. However, you can handle the client-side OnError event of the DateInput component of the datepicker as demonstrated here in order to detect invalid date entry into the control.


    Best wishes,
    Manuel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Markus
    Markus avatar
    196 posts
    Member since:
    Dec 2007

    Posted 25 Jan 2008 Link to this post

    Thnbaks for information, but I need a server side event. May be it is available the next version of the controls.
  4. Petja
    Admin
    Petja avatar
    631 posts

    Posted 25 Jan 2008 Link to this post

    Hello Markus,

    The SelectedDateChanged is a server-side event but you need to set the RadDatePicker AutoPostBack="true" if you want it to be fired on every date changed so the control postback and fire its handled server-side events.
    Let us know if this helps.

    Kind regards,
    Petja
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top