TimePicker Issue

6 posts, 1 answers
  1. Marco
    Marco avatar
    95 posts
    Member since:
    Apr 2011

    Posted 26 Sep Link to this post

    Hello Telerik,

    When I set the value of a RadTimePicker with a DateTime which is not on the current day, it is not possible to edit the time with the control anymore ?

    I'm using the last release (2017.3.912.40).

  2. Dimitar
    Admin
    Dimitar avatar
    1877 posts

    Posted 27 Sep Link to this post

    Hello Marco,

    I am not sure how to reproduce this. I have attached a small video that shows how I am testing it. Could you please check it and let me know what I am doing wrong?

    I am looking forward to your reply.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Marco
    Marco avatar
    95 posts
    Member since:
    Apr 2011

    Posted 27 Sep in reply to Dimitar Link to this post

    Hi Dimitar,

    With some investigation on my sample, it look like it happen only when I activate the FreeFormDateTime on the RadTimePicker.

     

    Public Class RadForm1
     
        Public Sub New()
     
            ' This call is required by the designer.
            InitializeComponent()
     
            ' Add any initialization after the InitializeComponent() call.
            Me.RadTimePicker1.TimePickerElement.MaskedEditBox.MaskType = Telerik.WinControls.UI.MaskType.FreeFormDateTime
        End Sub
     
     
        Private Sub RadForm1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
            Me.RadTimePicker1.Value = Now.AddDays(10)
        End Sub
    End Class
  4. Answer
    Dimitar
    Admin
    Dimitar avatar
    1877 posts

    Posted 28 Sep Link to this post

    Hello, Marco,

    I was able to reproduce the observed issue. I have logged this issue in our Feedback Portal. You can track its progress, subscribe for status changes and add your comment to it here. I have also updated your Telerik Points.

    To workaround this you need to set the Min/Max date of the provider:
    Protected Overrides Sub OnLoad(ByVal e As EventArgs)
        MyBase.OnLoad(e)
        radTimePicker1.Value = Date.Now.AddDays(10)
     
        Dim provider = TryCast(radTimePicker1.TimePickerElement.MaskedEditBox.Provider, FreeFormDateTimeProvider)
     
        provider.MinDate = Date.MinValue
        provider.MaxDate = Date.MaxValue
    End Sub

    I hope this will be useful. Let me know if you have additional questions.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  5. Marco
    Marco avatar
    95 posts
    Member since:
    Apr 2011

    Posted 28 Sep in reply to Dimitar Link to this post

    Hello Dimitar,

    Thanks for the workaround. It's working fine.

     

    Last but not least, I have send a feedback about typing an hour with something like hhmm (1030 for 10:30),

    https://feedback.telerik.com/Project/154/Feedback/Details/228419-timepicker-freeformate-cant-parse-hhmm

    But I have done a mistype on the Title (should be freeformdate and not freeformate) and I can't correct it...

  6. Dimitar
    Admin
    Dimitar avatar
    1877 posts

    Posted 28 Sep Link to this post

    Hi, Marco,

    I am glad that this is working fine. I have fixed the title of the item.

    Should you have any other questions do not hesitate to ask.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top