Basic Date Picker Forums

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

Resetting time picker to MinValue - Clear() not working

Last post 05-31-2007, 11:09 AM by geoffrey.mcgill. 3 replies.
Sort Posts: Previous Next
  •  05-25-2007, 10:40 AM 1213

    Resetting time picker to MinValue - Clear() not working

    I have the TimePicker inside of a FormView's EditItemTemplate (not associated with a DatePicker control). When the FormView is first switched into Edit mode, the TimePicker has the default MinValue item selected, which is great. When I select a time from the dropdown, and click a button to postback, I add something to the database in the FormView's ItemCommand event and then need to reset the control back to the MinValue. No matter what I try, when the page renders again, it retains the selected time that the user chose before the postback.

    I've tried Clear(), tried setting the SelectedValue and SelectedTime to TimeSpan.MinValue and to null. I've tried doing this in the PreRender event for the formview, and also in the PreRender event for the TimePicker control itself (which seems like it should be late enough to be after ViewState kicks in).

    Can you check this out in a FormView scenario?

    Thanks,

    Adam

  •  05-25-2007, 10:45 AM 1214 in reply to 1213

    Re: Resetting time picker to MinValue - Clear() not working

    Hi Adam,

    We're running some tests right now and should be able to respond shortly. Calling .Clear() in the ItemCommand Event should work.


    Thanks,
    Geoffrey McGill
    ----------------------------------------
    Coolite Inc.
    Email: support [at] coolite [dot] com
    Phone: +1(888)775-5888
  •  05-29-2007, 4:46 PM 1229 in reply to 1214

    Re: Resetting time picker to MinValue - Clear() not working

    Any luck reproducing this yet?
  •  05-31-2007, 11:09 AM 1230 in reply to 1213

    Re: Resetting time picker to MinValue - Clear() not working

    Hi adamtoth,

    We ran a couple tests calling .Clear() but have not been able to reproduce any problems. We posted our working sample with source-code at http://samples.basicdatepicker.com/FormView.aspx

    Are you able to send us some code to test with which reproduces the problem? Sorry for the hassle, but we're just not 100% steps are required to reproduce the defect.
     

    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