Last Updated: 14 Feb 2017 05:56 by ADMIN
Dess | Tech Support Engineer, Principal
Created on: 29 Dec 2016 12:59
Category: Scheduler/Reminder
Type: Bug Report
FIX. RadScheduler - current time indicator is not refreshed if RadScheduler is not currently focused
To reproduce:

Private Sub RadForm1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Dim dayView As SchedulerDayView = Me.RadScheduler1.GetDayView()
    dayView.RangeFactor = ScaleRange.FiveMinutes
    Dim ruler As RulerPrimitive = TryCast(Me.RadScheduler1.SchedulerElement.ViewElement,  _
    ruler.FormatStrings = New RulerFormatStrings("hh", "mm", "hh", "mm")
End Sub

Add a RadScheduler to a form and use the code snippet above. Run the application and scroll to the current time to see the current time indicator. Leave the form opened so you can see it on the second monitor but focus on another application for 5 minutes. You will notice that the current time indicator won't be redrawn until you focus RadScheduler again, click on the view or perform scrolling. The expected behavior is that RadScheduler will move the current time indicator as time is ticking.

Workaround: use a timer to refresh RadScheduler at a certain interval:
        Dim timer As New Timer
        timer.Interval = 1000
        AddHandler timer.Tick, AddressOf TimerTick

Private Sub TimerTick(sender As Object, e As EventArgs)
End Sub