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

scheduler and pagemethods

2 Answers 40 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Bernhard Rosenfelder
Top achievements
Rank 1
Bernhard Rosenfelder asked on 11 Jun 2012, 09:07 PM
hello community,

does someone know if there is a possibility to bind RadScheduler to pagemethods (webservice)?

kind regards,

bernhard  

2 Answers, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 15 Jun 2012, 08:54 AM
Hello Bernhard,

Yes, you can use page methods to populate RadScheduler when bound to web service.
Here is an example:
<telerik:RadScheduler runat="server" ID="RadScheduler1">
    <WebServiceSettings Path="TEST.aspx" GetAppointmentsMethod="GetAppointments" ResourcePopulationMode="Manual" />
</telerik:RadScheduler>
[WebMethod]
public static IEnumerable<AppointmentData> GetAppointments()
{
    List<AppointmentData> appointments = new List<AppointmentData>();
    AppointmentData a1 = new AppointmentData();
     
    a1.ID = "1";
    a1.Subject = "appt 1";
 
    a1.Start = new DateTime(2012,6,15, 9,0,0);
    a1.End = new DateTime(2012,6,15, 10,0,0);
 
    AppointmentData a2 = new AppointmentData();
    a2.Subject = "appt 2";
    a2.ID = "2";
    a2.Start = new DateTime(2012,6,15, 10,0,0);
    a2.End = new DateTime(2012,6,15, 11,0,0);
 
    appointments.Add(a1);
    appointments.Add(a2);
 
    return appointments;
}
The following help article might be of help too: http://www.telerik.com/help/aspnet-ajax/scheduler-resource-grouping.html.

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.
0
Bernhard Rosenfelder
Top achievements
Rank 1
answered on 18 Jun 2012, 05:24 PM
hi ivana,

thank you for the example. it was a great help to me.

kind regards,

bernhard
Tags
Scheduler
Asked by
Bernhard Rosenfelder
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Bernhard Rosenfelder
Top achievements
Rank 1
Share this question
or