Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
190
WebScheduleInfo control - OnActivityUpdating not calling the target server method
posted

I have the following WebScheduleInfo control in an ascx file.  The datAppointments_ActivityUpdating method as targeted for the OnActivityUpdating doesn't get called in the code behind for some reasons after the activity has been moved to a different time slot on the calendar.  It was working in v7.2, but it no longer does after I upgraded the app to v12.1.

Anyone else having the same issue or having a fix/workaround for this issue?

Calendar.ascx:
<ig_sched:WebScheduleInfo ID="datAppointments" runat="server"
    FirstDayOfWeek="Monday"
    AllowAllDayEvents="True"
    EnableReminders="False"
    WorkDayStartTime="7:00"
    OnActivityUpdating="datAppointments_ActivityUpdating"   
    EnableSmartCallbacks="True">
</ig_sched:WebScheduleInfo> 

Calendar.ascx.cs:
    protected void datAppointments_ActivityUpdating(object sender, CancelableActivityEventArgs e)
    {
        try
        {
            String jobRequestId = e.Activity.Key.ToString();
            DateTime newStartDate = DateTime.Parse(e.Activity.StartDateTime.ToString());
            int newDuration = Convert.ToInt32(e.Activity.Duration.TotalMinutes);

            JobRequestService service = new JobRequestService();
            service.Reschedule(jobRequestId, newStartDate, newDuration);
        }
        catch (Exception exception)
        {
            ExceptionHandler.LogWebApplicationException(exception);
        }
    }

Parents
  • 37874
    posted

    Hi cxnguye,

    I tested your scenario with WebMonthView linked to WebScheduleInfo, but I could not reproduce this issue - the ActivityUpdating event was fired as expected. What is the exact version you are using? Is it possible for you to provide a running sample, demonstrating this issue? Thank you.

Reply Children