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
20
how can i get recurring activities id
posted

hi, first time i am using webscheduleinfo and webmonthview control. the scenario is i have to show

the activities in webmonth view control and on click of any activity i have to open a form with that

selected activity details. my problem is if i don't create recurrence then i am able to get the selected

activity but if i create recurrence then i am not able to get the selected activity. my code is as follows :

 //following code is to create recurrence

 t

his

 

his

 

his

 

his
his.WebScheduleInfo1.DataBind();

 

Appointment myAppointment = this.CreateAppointment("100");

 

this.WebScheduleInfo1.Activities.Clear(); Recurrence recurrenceObject = myAppointment.Recurrence;

recurrenceObject.Period =

RecurrencePeriod.Monthly;

 

recurrenceObject.MaxOccurrences = 3;recurrenceObject.PeriodMultiple = 1;this.WebScheduleInfo1.Activities.Add(myAppointment);

 

myAppointment = this.CreateAppointment("2");

 

 

 

myAppointment.CreateRecurrence();

myAppointment.Recurrence.DayOfMonth = 5;

 

 

 

 

 

 

 

 

 this.WebScheduleInfo1.Activities.Add(myAppointment);

 

WebScheduleInfo1.AllowAllDayEvents = true;

WebScheduleInfo1.EnableRecurringActivities =

true;

 

 

WebMonthView1.WebScheduleInfo = WebScheduleInfo1;

WebMonthView1.AppointmentFormatString =

"monthly task";

//following code is to get activity id

function

 

 

{

var

 

 

if

 

 

{

 

 

 

{

     alert(activity.getSubject());

}

 

 

(mv != null) var activity = mv.getSelectedActivity();

 

if(activity != null) }
mv = ig_getWebMonthViewById("WebMonthView1");monthviewclick(oWebMonthView, oEvent, element)

if there is recurrence for that activity then it returns "activity" = null and if i don't create recurrence

then it returns the activity key. kindly help me out.

Parents
No Data
Reply Children
No Data