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

AppointmentsPopulating fails to fire

1 Answer 49 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 08 Apr 2015, 05:03 AM

Hi there,

I am trying to implement getting data for the Scheduler (Q1 2014) via a Web Service.

I have followed the instructions and created a new class derived from SchedulerInfo.

 

My aspx contains the following: <telerik:RadScheduler ID="RadScheduler1" runat="server" OnAppointmentsPopulating="RadScheduler1_AppointmentsPopulating" OnResourcesPopulating="RadScheduler1_ResourcesPopulating">
            <WebServiceSettings Path="SchedulerWebService.asmx" ResourcePopulationMode="ServerSide" />
  
        </telerik:RadScheduler>

 

I can add custom values to this in the server side code using

protected void RadScheduler1_ResourcesPopulating(object sender, Telerik.Web.UI.ResourcesPopulatingEventArgs e)

 so I seem to be on the right course.

 

However, when I try to do the same for the AppointmentsPopulating event, this is never fired.

 

 

 

Have I done something obviously wrong?

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 10 Apr 2015, 10:31 AM
Hello,

The resources trigger the event because they are loaded on the Server, as the ResourcePopulationMode="ServerSide" specifies. This is needed in case you want to use resource grouping, and the resources are needed on the server in order to render the tables properly. 

The appointments however are loaded on the client, after the Scheduler is initialized. If you want to use some of the Client events that the Scheduler exposes, you can check out our online help:
http://www.telerik.com/help/aspnet-ajax/scheduler-client-side-programming-events.html

Regards,
Bozhidar
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Scheduler
Asked by
Roger
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or