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

Appointment Info every 30 s

1 Answer 16 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mario
Top achievements
Rank 1
Mario asked on 01 Jun 2012, 09:29 AM
Hello,

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
Reiner

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 06 Jun 2012, 07:13 AM
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)
            {
                Response.Write(app.Subject);
            }
        }
    }

Hope this will be helpful.

Regards,
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.
Tags
Scheduler
Asked by
Mario
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or