Custom MonthView Special Slots

1 Answer 14 Views
ScheduleView
Richard
Top achievements
Rank 1
Iron
Richard asked on 18 Mar 2024, 03:30 PM | edited on 18 Mar 2024, 03:31 PM

Hi.

I am trying to customize my month view for my special slots.

I can do it for daily and weekly, but for monthly it takes the whole slot. I want it to look like the appointments do... (i.e.: show the stack of slots if there are more than one...)

What am I doing wrong? Or cannot be done...

 

I am using Telerik UI for WPF R1 2023

 

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Accepted
Stenly
Telerik team
answered on 21 Mar 2024, 01:32 PM

Hello Richard,

By default, the special slots in the MonthViewDefinition will take the whole day compared to how they are displayed, for example, in the DayViewDefinition and WeekViewDefinition. This behavior cannot be changed.

With this in mind, a possible approach would be to create custom appointments that will look like slots in the MonthViewDefinition and will have different styles. You could hide them when the current ActiveViewDefinition property of RadScheduleView changes (show them in the MonthViewDefinition and hide them when in other ones). For example, you can bind it to a property from your view model (Mode=TwoWay), and when its value changes, modify the custom appointments' visibility. 

Please note that the above suggestion will not be a 100 percent substitution for the slots' behavior.

With this being said, I hope the provided inforamtion will be of help to you.

Regards,
Stenly
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com
Richard
Top achievements
Rank 1
Iron
commented on 21 Mar 2024, 06:45 PM

Thank you!

Since my spelcial slots are actually shown from a special appointment type, I explored that idea, but was hoping for something out of the box...

I will  have to take that route,

 

Best regards,

Tags
ScheduleView
Asked by
Richard
Top achievements
Rank 1
Iron
Answers by
Stenly
Telerik team
Share this question
or