Unplanned
Last Updated: 27 May 2026 06:40 by ADMIN
md
Created on: 27 May 2026 06:06
Category: Scheduler/Reminder
Type: Bug Report
0
Scheduler: Appointments with duration less than 1 minute are not visible in RadPrintPreviewDialog

When an appointment has a very short duration (seconds-level, e.g., 1 second and 0 minutes), it does not appear in the RadPrintPreviewDialog. The appointment is visible in the scheduler UI but missing from the print preview.

For example:

Dim ap1 As New Appointment
ap1.Start = New Date(Date.Today.Year, Date.Today.Month, Date.Today.Day, 15, 0, 0)
ap1.End = New Date(Date.Today.Year, Date.Today.Month, Date.Today.Day, 15, 0, 1)
ap1.Description = "not printed"
ap1.Summary = "not printed"
RadScheduler1.Appointments.Add(ap1)
1 comment
ADMIN
Nadya | Tech Support Engineer
Posted on: 27 May 2026 06:40

Hello, Mike,

Workaround: use a custom SchedulerPrintStyle and override the GetRoundedDateTime() method as follows:

Public Class MySchedulerPrintStyle
    Inherits SchedulerDailyPrintStyle
    Protected Overrides Function GetRoundedDateTime(time As Date, roundUp As Boolean) As Date
        If roundUp AndAlso (time.Second > 0 OrElse time.Millisecond > 0) Then
            ' Round up to the next whole minute before calling base logic
            time = New Date(time.Year, time.Month, time.Day, time.Hour, time.Minute, 0).AddMinutes(1)
        End If

        Return MyBase.GetRoundedDateTime(time, roundUp)
    End Function
End Class

RadScheduler1.PrintStyle = New MySchedulerPrintStyle()

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.