AppointmentsPopulating fails to fire

2 posts, 0 answers
  1. Roger
    Roger avatar
    1 posts
    Member since:
    Apr 2015

    Posted 08 Apr 2015 Link to this post

    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?

  2. Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 10 Apr 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top