Basic Date Picker Forums

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

Half filled multiple drop down timepicker

Last post 01-17-2007, 10:46 AM by geoffrey.mcgill. 1 replies.
Sort Posts: Previous Next
  •  01-17-2007, 2:06 AM 1040

    Half filled multiple drop down timepicker

    I have a datepicker linked to a timepicker which is set to use multiple drop downs, however i have encountered users who are only filling in the first half of the time picker.  They are setting the hours dropdown to "7" and leaving the minutes as "mm".  Is there any way that the datepicker can either change the minutes column to 00 when a hour value has been entered - or for it to assume that a half entered time means "7" o'clock.  With it only half set at the moment these times are getting set as midnight.

    Or should i just reeducate the testers!

    Alex
  •  01-17-2007, 10:46 AM 1041 in reply to 1040

    Re: Half filled multiple drop down timepicker

    Hi alex,

    We're going to look into defaulting an unselected time part to '0', although there are a few options available now which you may find helpful.
    1. Set the Nullable property of the TimePicker to False. Setting to False will not render the blank row and the DropDrowList will default to first option in each list.
    2. Use a TimeRequiredValidator which will validate the Time. The TimeRequiredValidator will prompt the user if all time parts have not been completed.
    3. Preset the SelectedTime. The following code demonstrates setting the time to noon. Example:

      protected void Page_Load(object sender, EventArgs e)
      {
          if (!IsPostBack)
          {
              this.TimePicker1.SelectedTime = DateTime.Today.AddHours(12).TimeOfDay;
          }
      }

    Maybe a combination of 1 & 3 would do the trick?

    Hope this helps.


    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