This is a migrated thread and some comments may be shown as answers.

Special slots that do not last the whole day shouldn't be displayed in the month view

2 Answers 110 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
alang
Top achievements
Rank 1
alang asked on 29 Nov 2017, 04:27 PM

Hello Telerik team

We are in the process of evaluating a schedule control. Now we encountered a problem with ScheduleView. Special slots are displayed correctly in the day and week view, but in the month view it is very unpleasant to cover the whole day with a color of one of the special slots. Special slots that do not last the whole day shouldn't be displayed in the month view.
Is it possible to change this behaviour?

Regards,
Marco

2 Answers, 1 is accepted

Sort by
0
alang
Top achievements
Rank 1
answered on 30 Nov 2017, 08:03 AM
And here is a test Project on my OneDrive account: https://1drv.ms/u/s!ApC9hrIinTjDcY8p0HrAZKJfZYs
0
Accepted
Kalin
Telerik team
answered on 04 Dec 2017, 03:22 PM
Hi Marco,

Thank you for contacting us.

You can change this behavior by implementing a custom SpecialSlotStyleSelector that, for example, returns an additional transparent style for those Slots that have duration less than a day in MonthViewDefinition. However I noticed there are some ReadOnly Slots in the SpecialSlots collection that would make corresponding days in MonthView not editable. This behavior could be changed using custom ReadOnlyBehavior with overridden CanEditSlot method. I have modified the sample project to demonstrate both approaches.

Hope this helps. If you have any additional questions, please let us know.

Regards,
Kalin
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
ScheduleView
Asked by
alang
Top achievements
Rank 1
Answers by
alang
Top achievements
Rank 1
Kalin
Telerik team
Share this question
or