Unplanned
Last Updated: 08 Mar 2023 10:01 by ADMIN
Fabian
Created on: 08 Mar 2023 09:51
Category: Scheduler/Reminder
Type: Bug Report
1
RadScheduler: Holidays added to a date are not displayed if the scheduler is grouped by resources

When RadScheduler is grouped by resources, the programmatically added Holidays are not displayed into the view: 

    Sub New() 
        InitializeComponent()

        Dim colors() As Color = {Color.LightBlue, Color.LightGreen, Color.LightYellow, Color.Red, Color.Orange, Color.Pink, Color.Purple, Color.Peru, Color.PowderBlue}
        Dim names() As String = {"Alan Smith", "Anne Dodsworth", "Boyan Mastoni", "Richard Duncan", "Maria Shnaider"}
        For i As Integer = 0 To names.Length - 1
            Dim resource As New Telerik.WinControls.UI.Resource()
            resource.Id = New EventId(i)
            resource.Name = names(i)
            resource.Color = colors(i) 
            Me.RadScheduler1.Resources.Add(resource)
        Next i

        Me.RadScheduler1.GroupType = GroupType.Resource
        Me.RadScheduler1.ActiveView.ResourcesPerView = 2


        Dim holiday As Holiday = New Holiday()
        holiday.Date = New DateTime(2023, 3, 8)
        holiday.HolidayName = "International Women's Day"
        holiday.Location = "Bulgaria"
        Dim generateAppointment As Boolean = True
        Me.RadScheduler1.Holidays.AddHoliday(holiday, generateAppointment)
    End Sub

How it looks with resources:

How it looks without resources:

1 comment
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 08 Mar 2023 10:01

Hello, Fabian,

Thank you for bringing this to our attention. Currently, the possible solution that I can suggest is to add an Appointment specifying the ResourceId for each available resource in the scheduler: https://docs.telerik.com/devtools/winforms/controls/scheduler/appointments-and-dialogs/working-with-resources 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.