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
Recurring Appointment Javascript Error

When I try to edit a recurring appointment (double clicking) in a WebMonthView, a javascript error is thrown at the following line  "this.getActivities().getItemFromKey(dataKey)"

(I am using infragistics 9.2)

ig_WebScheduleInfo.prototype._showAppointmentDialog =

function (dataKey, id, occur, prevOccur, nextOccur) 

if(prevOccur != null)

   prevOccur = eval(prevOccur); 

if(nextOccur != null)

   nextOccur = eval(nextOccur); 

if(occur != null)


   occur = eval(occur); 

   var activity = this.getActivities().getItemFromKey(dataKey); --- ERROR!! ---


   activity._prevOccur = prevOccur; 

   activity._nextOccur = nextOccur;

   this.showAddAppointmentDialog(activity, id);



   this._internalShowUpdateAppointmentDialog(dataKey, id, prevOccur, nextOccur); 



this.getActivities() does not contains the recurrence appointment with Key = dataKey

The appointments are added using a custom data provider built on WebScheduleDataProviderBase


    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        If Not Page.IsPostBack Then

            Dim d As New UniversalDataProvider()

            d.WebScheduleInfo = Me.WebScheduleInfo1

            AddHandler d.ActivitiesFetching, AddressOf d_ActivitiesFetching

        End If

End Sub


Private Sub d_ActivitiesFetching(ByVal sender As Object, ByVal e As ActivitiesFetchingEventArgs)

' Add each Appointment

        For Each app As Appointment In ManagerAppointment.getInstance.SelectAll()

                DirectCast(e.Appointments, IList).Add(app)


    End Sub

Any help is greatly appreciated.


No Data
Reply Children
No Data