How to make an appointment an "all day appointment"?

7 posts, 0 answers
  1. Gint
    Gint avatar
    9 posts
    Member since:
    Sep 2011

    Posted 22 Sep 2011 Link to this post

    Hello Community and telerik,

    What properties do I have to set to get an "all day appointment"?

    I want multiple appointments spanning the same time (00:00-24:00) to show up at the top of the day-view, in week-view and in month-view.

    Thanks,
    Gint
  2. Dan Lehmann
    Dan Lehmann avatar
    103 posts
    Member since:
    May 2011

    Posted 22 Sep 2011 Link to this post

    In the advanced form there is a checkbox for All Day. The way it saves to the database for an all day appt for September 21, 2011 is for the start = 2011-09-21 00:00:00.000 and the end = 2011-09-22 00:00:00.000.

    Dan
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 26 Sep 2011 Link to this post

    Hi Jürgen,

    To set the "all day" row to be visible at the top of all the appointments for the day, the ShowAllDayRow property of the RadScheduler should be set to "true" as it is by default.

    Here is an example:
    <telerik:RadScheduler ID="RadScheduler1" runat="server" ShowAllDayRow="true" />...

    As Dan suggested, the all day appointments are made using the "All Day" check box in the advanced form of the RadScheduler.

    If you want to set the appointment's start time and end time properties from code-behind so the appointment
    would last a whole day, you could use the code bellow:
    C#:
    Appointment app = new Appointment();
    app.Subject = "My appointment";
    DateTime startDate = DateTime.Now;
    DateTime startTime = startDate.AddHours(-startDate.Hour);
    startTime = startTime.AddMinutes(-startDate.Minute);
    startTime = startTime.AddSeconds(-startDate.Second);
    startDate = startTime.AddMilliseconds(-startDate.Millisecond);
    app.Start = startTime;
     
    DateTime endDate = DateTime.Now;
    DateTime endTime = endDate.AddHours(24-endDate.Hour);
    endTime = endTime.AddMinutes(-endDate.Minute);
    endTime = endTime.AddSeconds(-endDate.Second);
    endTime = endTime.AddMilliseconds(-endDate.Millisecond);
    app.End = endTime;
     
    RadScheduler1.InsertAppointment(app);

    Hope this helps.

    Regards,
    Ivana
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  5. Allen
    Allen avatar
    111 posts
    Member since:
    Apr 2012

    Posted 12 Sep 2012 Link to this post

    In my case, I need to use the format  2011-09-21 00:00:00.000 and the end = 2011-09-22 00:00:00.000.
    If I use the format  2011-09-21 00:00:00.000 and the end = 2011-09-21 23:59:59.000, I will run into an issue when I connect to another system (software) we are using.

    Please refer to the png.  I have  time range indicators on the AllDay row, so I can't disable the AllDay Row unless I can add an additional row for the time range indicators.thanks
    Is there an easy way to show the Allday appointmet in the time slot (cover the entire day) without using 23:59:59.000 format?
    Should I disable the AllDay row and add an additional row for the time range indicators?  if yes, how?


  6. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 17 Sep 2012 Link to this post

    Hi Allen,

    Setting time range into the column headers in week/multiday View of RadScheduler is not a functionality that is supported out-of-the-box.

    As for how RadScheduler behaves when the 'All-day row" is enabled, please take a look at the following online demo (under the "Day, Week, and Multiday Views" section): http://demos.telerik.com/aspnet-ajax/scheduler/examples/customization/defaultcs.aspx.

    Regards,
    Ivana
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  7. Ashok
    Ashok avatar
    1 posts
    Member since:
    Aug 2013

    Posted 10 Oct 2013 Link to this post

    Hi,

    Is there a way in which I can keep the all day appointment for a fixed time i.e the working time.

    I have a time limit of 8 AM to 7.30 Pm and I want to have all day appointment only for this time. What modifications should I do?
  8. Plamen
    Admin
    Plamen avatar
    2731 posts

    Posted 14 Oct 2013 Link to this post

    Hi,

     
    RadScheduler can only work with 24 hours All day appointments and unfortunately the desired functionality is not supported.

    Regards,
    Plamen
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017