This is a migrated thread and some comments may be shown as answers.
TimePicker Issue
5 Answers 12 Views
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 2
Veteran
Marco asked on 26 Sep 2017, 03:55 PM

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).

5 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 27 Sep 2017, 10:05 AM
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.
0
Marco
Top achievements
Rank 2
Veteran
answered on 27 Sep 2017, 11:55 AM

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
0
Accepted
Dimitar
Telerik team
answered on 28 Sep 2017, 08:23 AM
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.
0
Marco
Top achievements
Rank 2
Veteran
answered on 28 Sep 2017, 09:03 AM

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...

0
Dimitar
Telerik team
answered on 28 Sep 2017, 09:59 AM
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.
Asked by
Marco
Top achievements
Rank 2
Veteran
Answers by
Dimitar
Telerik team
Marco
Top achievements
Rank 2
Veteran
Share this question
or