Appointment Info every 30 s

2 posts, 0 answers
  1. Mario
    Mario avatar
    25 posts
    Member since:
    Jan 2012

    Posted 01 Jun 2012 Link to this post


    I need every 30 seconds an info which Appointment the current time is displayed in the Scheduler. I need this for a status display in a TreeView. The TreeView shows to the Appointment with an associated icon.

    How can I check every 30 seconds the current Appointment and analyze the information?
    Thank you
  2. Plamen
    Plamen avatar
    3038 posts

    Posted 06 Jun 2012 Link to this post

    Hello Mario,

    You can achieve this with the help of a Timer as in the code below:

    <asp:Timer runat="server" id="UpdateTimer" interval="30000" ontick="UpdateTimer_Tick" />
    protected void UpdateTimer_Tick(object sender, EventArgs e)
            foreach (Appointment app in Scheduler1.Appointments)
                if (app.Start <= DateTime.Now && app.End >= DateTime.Now)

    Hope this will be helpful.

    Plamen Zdravkov
    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.
Back to Top