Appointment Time Event

4 posts, 0 answers
  1. Troy
    Troy avatar
    18 posts
    Member since:
    Jul 2020

    Posted 10 Oct 2020 Link to this post

    Is there an event that fires when the current time hits the appointment time?

    Or should I be using the reminders and setting a time of 0?

    If that is the case, is it possible to not render the reminder window at all?  

    In short, I want to use the scheduler to schedule appointments (events), and have an event fire when they are hit, but not show the reminder window at all. I want to do my own custom logic at that point.

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    4126 posts

    Posted 11 Oct 2020 Link to this post

    Hello, Troy,

    There is no specific event that is fired when the time of a specific appointment has come. According to the provided information, indeed the reminders functionality in RadScheduler would be quite useful for your scenario. The following help article is quite useful on this topic:

    https://docs.telerik.com/devtools/winforms/controls/scheduler/reminders/radschedulerreminder 

    If you don't want to display the reminder in the edit dialog, you can simply hide the reminder dropdown. For this purpose, it would be necessary to create a custom EditAppointmentDialog and set the Visibility of the radDropDownListReminder control to Hidden/Collapsed in the overridden OnLoad event. An alternative solution is to override the LoadReminders method and leave it empty without executing the basic logic.

    I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

    Regards,
    Dess | Tech Support Engineer, Sr.
    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/.

  3. Troy
    Troy avatar
    18 posts
    Member since:
    Jul 2020

    Posted 12 Oct 2020 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Dess,

    Thanks for your reply!  Its not that I want to hide the reminder dropdown on the add/edit appointment dialog.

    I don't want the reminder popup itself to appear.  I just want the event to fire at the appropriate time, so I can then process the custom code I need to without any UI element for the reminder at all.

  4. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    4126 posts

    Posted 13 Oct 2020 Link to this post

    Hi, Troy,

    You can download the source code of the Telerik UI for WinForms suite from your Telerik account and have a look at the internal implementation of RadScheduler and how it shows the RadAlarmForm. Actually, it uses a timer in which Tick event RadScheduler checks for upcoming appointments.

    If you don't want to use reminders functionality which shows a dialog with the upcoming events, you can just use a standard timer and check the current time and what is stored in the Appointments collection. Then, you can execute the desired logic in the Tick event.

    Regards,
    Dess | Tech Support Engineer, Sr.
    Progress Telerik

    Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Back to Top