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.
- 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.
- Use a TimeRequiredValidator which will validate the Time. The TimeRequiredValidator will prompt the user if all time parts have not been completed.
- 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