Basic Date Picker Forums

Welcome to Basic Date Picker Forums Sign in | Join | Help
in Search

SAMPLE: Set the MinimumDate client-side.

Last post 09-20-2006, 10:29 AM by geoffrey.mcgill. 0 replies.
Sort Posts: Previous Next
  •  09-20-2006, 10:29 AM 785

    SAMPLE: Set the MinimumDate client-side.

    The following sample demonstrates a typical Date Range Selection scenario similar to selecting travel dates.

    Two date pickers are linked together so when the StartDate is changed, the EndDate is updated to be 7 days after the selected StartDate. See Sample

    The EndDate is updated when the client-side JavaScript function OnClientAfterSelectionChanged is fired.

    A DateRangeValidator and DateDifferenceValidator are also used within the sample. The DateRangeValidator checks to ensure the StartDate does not occur in the past and the DateDifferenceValidator checks to ensure the EndDate is at least 7 days greater than the StartDate.


    Thanks,
    Geoffrey McGill
    ----------------------------------------
    Coolite Inc.
    Email: support [at] coolite [dot] com
    Phone: +1(888)775-5888
View as RSS news feed in XML
 
Powered by Community Server, by Telligent Systems