onclientappointmentclick custom resource

1 posts, 0 answers
  1. Ala eddine
    Ala eddine avatar
    19 posts
    Member since:
    Feb 2012

    Posted 06 Feb 2014 Link to this post

     
    Hello,

    I'm trying to custom selected appointment and the resource matched with.

    the javascript bellow works when onclientappointmentclick is called ;
    i can custom the selected appointment but the resource doesn't change !!!

                    function appointmentclicked(sender, eventArgs) {
     
                      var  selectedAppointment = eventArgs.get_appointment();
                        selectedAppointment.set_cssClass("TimeSlotCssForUser");
                        var resourcesList= selectedAppointment.get_resources();
                        var myresource= resourcesList.getResource(0);
                        myresource.set_cssClass("TimeSlotCssForUser");
                    }

    thank you for the help ;)

Back to Top