This is a migrated thread and some comments may be shown as answers.

Set null to SelectedTime

5 Answers 99 Views
TimePicker
This is a migrated thread and some comments may be shown as answers.
T.Y.
Top achievements
Rank 1
T.Y. asked on 21 May 2009, 09:14 AM
Hi

I set the value of radTimePicker.SelectedTime from a dataBase. 
the value in dataBase could be null but the SelectedTime doesn't get a null.
If is not set value to SelectedDate then TimePicker display the 00:00 or 12:00 AM (according to the CultureInfo).

I want that the timePicker to display nothing or the time format, when the selectedTime is null.

Thanks
Toiby

5 Answers, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 21 May 2009, 04:22 PM
Hi T.Y.,

This feature(nullabe support for SelectedTime) has already been added to RadTimePicker and the change will be reflected in the upcomming SP2 release due at the beginning of next week.

Regards,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
T.Y.
Top achievements
Rank 1
answered on 31 May 2009, 11:10 AM
Hi,

I install the SP2 release.
There is an possibility to clear the value in the TimePicker.
but, I want to set null to the selectedTime property of TimePicker by through the code and that displayed time in TimePicker will be null
can I do that?

Thanks
Toiby

0
Boyan
Telerik team
answered on 04 Jun 2009, 12:45 PM
Hello T.Y.,

Yes you can set it in the code-behind. You just have to use:
timepicker.SelectedTime = null

There is an issue with the SP2 dll's that If you have set time and then set SelectedTime to null, next time when you open the pop-up it will look visually as you have selected time, although the value is null. This is also fixed and will be available in the next weekly build.

Greetings,
Boyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Alex
Top achievements
Rank 1
answered on 05 Jan 2010, 11:18 PM
I am using version 2009.3.1208.35  but there is no 'selectedTime' property for the timepicker

Can you tell me please how to set the timepicker so that it displays without any default time ?
0
Kaloyan
Telerik team
answered on 07 Jan 2010, 11:54 AM
Hi Alex Holland,

If you don't select a value to the SelectedTime, the RadTimePicker won't display any date. Let us know if this is the problem you are facing.

Regards,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TimePicker
Asked by
T.Y.
Top achievements
Rank 1
Answers by
Bobi
Telerik team
T.Y.
Top achievements
Rank 1
Boyan
Telerik team
Alex
Top achievements
Rank 1
Kaloyan
Telerik team
Share this question
or