Show all day event in the main part of Week View

2 posts, 1 answers
  1. Konstantin
    Konstantin avatar
    1 posts
    Member since:
    Oct 2018

    Posted 09 Nov 2018 Link to this post

    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.

  2. Answer
    Anthony
    Anthony avatar
    5 posts
    Member since:
    May 2018

    Posted 12 Nov 2018 in reply to Konstantin Link to this post

    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.

Back to Top