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

Show all day event in the main part of Week View

1 Answer 170 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Konstantin
Top achievements
Rank 1
Konstantin asked on 09 Nov 2018, 09:59 PM

Hello. 

 

I am trying to figure out how can i hide AllDaySlot, but still see events in the main part.

I've checked https://www.telerik.com/forums/=-24-hour-events-treated-as-all-day topic and any related topics but found no solution.

I can see working example, but for AJAX here: https://demos.telerik.com/aspnet-ajax/scheduler/examples/day-week-multi-day-views/defaultcs.aspx , but i had no luck to find out why and how is it done.

 

This functionality is required by my client and it's critical.

 

Looking forward for your answers.

 

Thank you.

1 Answer, 1 is accepted

Sort by
0
Accepted
Anthony
Top achievements
Rank 1
answered on 13 Nov 2018, 01:02 AM

Hi Konstantin,

You could manipulate the event data for all day events (preferably on the server-side) so that the isAllDay flag is "false" and the start time is 00:00:00 and end time is 23:59:59.

Here's an example I wrote that

1. hides the all day row with the option, allDaySlot: false,

2. manipulates the incoming data on dataBound:

https://dojo.telerik.com/@antman/ajujusIw

Note that the scheduler treats events that span across days as all-day events even though the isAllDay flag is off. That's why I've set the time from midnight to 23:59:59.

Tags
Scheduler
Asked by
Konstantin
Top achievements
Rank 1
Answers by
Anthony
Top achievements
Rank 1
Share this question
or