Set null to SelectedTime

6 posts, 0 answers
  1. T.Y.
    T.Y. avatar
    17 posts
    Member since:
    Apr 2009

    Posted 21 May 2009 Link to this post

    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
  2. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 21 May 2009 Link to this post

    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.
  3. DevCraft banner
  4. T.Y.
    T.Y. avatar
    17 posts
    Member since:
    Apr 2009

    Posted 31 May 2009 Link to this post

    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

  5. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 04 Jun 2009 Link to this post

    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.
  6. Alex Holland
    Alex Holland avatar
    1 posts
    Member since:
    Mar 2009

    Posted 05 Jan 2010 Link to this post

    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 ?
  7. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 07 Jan 2010 Link to this post

    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.
Back to Top
DevCraft banner