This is a migrated thread and some comments may be shown as answers.

[Solved] Recurrence - first entry does not show when...

4 Answers 105 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Gerrit du Preez
Top achievements
Rank 1
Gerrit du Preez asked on 25 Feb 2010, 08:33 AM
Hi there

When I add an entry into the Scheduler (on my project as well as your online demo's) for e.g. a Wednesday and set the entry to recur for the next three weeks on Monday's, the first Wednesday entry does not show in the Scheduler.

In other words, I do the following:

  • Create a new entry into the Scheduler for a Wednesday and click the Recurrence check box
  • I click the Weekly radio button
  • Wednesday is automatically checked, I uncheck that and check Monday
  • I then end it after 3 occurances

When I submit, the initial Wednesday entry does not show in the Scheduler, only the 3 Monday recurrences.

What then happens is if I show my events in a RadGrid, the initial Wednesday event shows in the grid, but when I open the Scheduler, it doesn't.

Any advise?

Greetings

Gerrit

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Mar 2010, 01:40 PM
Hi Gerrit,

It is expected that the initial event will not show up since you set the appointment to occur on every Monday for three occurrences. If you parse the recurrence rule you will see that occurrences are created for three Mondays which is expected. Attached is a simple demo for reference.


Kind regards,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Gerrit du Preez
Top achievements
Rank 1
answered on 04 Mar 2010, 07:43 AM
Hi Peter

Thanks for the feedback.

I accept this is the way the recurrence rule works, but it still leaves me with a practical problem.  Maybe you can give me some advice.

To use a practical example:

I have a project meeting on Wednesday, with three follow up meetings recurring on the next three Mondays.

If I schedule it, it will only show the three follow up meetings and not the initial Wednesday meeting.

So, if I understand you correctly, this is expected and  this scenario can't be scheduled in 1 entry, so I therefore have to create a single entry for the Wednesday, and then another entry for the three recurring Mondays?  Is my assumption correct?

If this is the case, is there then a way to warn or prevent the user to schedule it in the way I initially intended - in one scheduler entry?

My problem is that the system allows me, or creates the impression that I can schedule it in one scheduler entry. So, someone may use the scheudler, scheduling the initial meeting and thinking it will show, while in fact only the recurring entries appears.

I would like to warn or prevent the user from doing that.  Any advice?

Thanks

Gerrit


0
Peter
Telerik team
answered on 09 Mar 2010, 09:11 AM
Hi Gerrit,

Yes, your assumption is correct. The good news is that you can automatically insert an appointment for the day that the advanced form was opened for. Here is the code to try:
protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e)
   {
       if (e.Appointment.RecurrenceState == RecurrenceState.Master)
       {
           Appointment AppointmentToInsert = new Appointment();
           AppointmentToInsert.Start = e.Appointment.Start;
           AppointmentToInsert.End = e.Appointment.End;
           AppointmentToInsert.Subject = e.Appointment.Subject;
           RadScheduler1.InsertAppointment(AppointmentToInsert);
       }
   }


Sincerely yours,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Gerrit du Preez
Top achievements
Rank 1
answered on 09 Mar 2010, 02:43 PM
Thanks Peter

Will try it out.

Greetings

Gerrit
Tags
Scheduler
Asked by
Gerrit du Preez
Top achievements
Rank 1
Answers by
Peter
Telerik team
Gerrit du Preez
Top achievements
Rank 1
Share this question
or