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

Multiday view greying out weekends

3 Answers 62 Views
Calendar & Scheduling
This is a migrated thread and some comments may be shown as answers.
E
Top achievements
Rank 1
E asked on 10 Dec 2020, 10:04 PM

In multi-day schedule view,the weekends are greyed out. Why is this default behavior, and how do it have them show up as any other normal days?

 

3 Answers, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 10 Dec 2020, 10:24 PM

Hi Anthony,

That is because weekends are special slot type called 'Non-Working Hours'. We have an entire page dedicated to explaining this concept in the documentation, please see Xamarin Calendar Documentation | Non-Working Hours | Telerik UI for Xamarin.

There, you'll find an example that changes the background color of those days using a CalendarSpecialSlotStyle object. If you wanted to make it transparent, just set the BackgroundColor property to Transparent:

<telerikInput:CalendarSpecialSlotStyle BackgroundColor="Transparent" .../>

For more information about Multiday View, visit Xamarin Calendar Documentation | MultiDay View | Telerik UI for Xamarin.

Wrapping Up

If I was able to answer your question, you can let me know by using the ticket's "Mark as resolved" button (in the email or on the ticket page). If you have any new issues, please open a new Support Ticket so we can assist further.

Thank you for contacting Support and for choosing UI for Xamarin for your projects. Have a great evening!

Regards,
Lance | Manager Technical Support
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/.

0
E
Top achievements
Rank 1
answered on 10 Dec 2020, 11:12 PM

I read that document, but that's not what I'm looking for. I don't need to style the non-working slots, I need to make weekends be considered 'working slots'.

Currently, I display the business hours on the schedule as the DayStartTime/DayEndTime, and I use the WorkStartTime and WorkEndTime to grey out the times within that day that the user is not scheduled to work. This all works great with a couple lines of code. The only issue I am finding is how to enable weekend slots without having to write a ton of extra code.

The link you gave me says that weekends are non working slots "by default". That makes it seem like there's a way to turn that off.

 

 

 

0
E
Top achievements
Rank 1
answered on 11 Dec 2020, 03:08 PM
Those links helped me do what I was looking to do. I created a special slot for every day from midnight to midnight that is an "off" color, and then added more special slots for working hours on each day with a white background.
Tags
Calendar & Scheduling
Asked by
E
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
E
Top achievements
Rank 1
Share this question
or