Completed
Last Updated: 14 Feb 2017 05:56 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 29 Dec 2016 12:59
Category: Scheduler/Reminder
Type: Bug Report
1
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,  _
    SchedulerDayViewElement).DataAreaElement.Ruler
    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
        timer.Start()

Private Sub TimerTick(sender As Object, e As EventArgs)
    Me.RadScheduler1.SchedulerElement.RefreshViewElement()
End Sub
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments