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

Recurrence problem

3 Answers 147 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
cy
Top achievements
Rank 1
cy asked on 20 Apr 2012, 04:22 PM
Why my recurrence in radschedule doesn't work it just display the master recurrence? see attached image

here's the scheduler control

<telerik:RadScheduler ID="RadScheduler1" runat="server"            
    TimelineView-UserSelectable="false"
    ShowResourceHeaders="true"
    EnableViewState="false"
    AllowInsert="false"
    ShowAllDayRow="false"
    HoursPanelTimeFormat="HH:mm"
    OverflowBehavior="Scroll"
    Height="700px"
    MinutesPerRow="60"
    ShowFooter="false"
    ShowFullTime="true"
    AllowDelete="false"
    ReadOnly="true" DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End">
    <DayView EnableExactTimeRendering="true" HeaderDateFormat="dddd, dd MMMM yyyy" />
    <WeekView EnableExactTimeRendering="true" HeaderDateFormat="dddd, dd MMMM yyyy" />
</telerik:RadScheduler>


here's the code 

protected void Page_Load(object sender, EventArgs e)
{
    RadScheduler1.SelectedView = Telerik.Web.UI.SchedulerViewType.DayView;
    RadScheduler1.SelectedDate = new DateTime(2012, 10, 19, 13, 0, 0);
 
    Appointment app = new Appointment
    {
        ID = 1,
        Start = new DateTime(2012, 10, 19, 13, 0, 0),
        End = new DateTime(2012, 10, 19, 15, 0, 0),
        Description = "description",
        Subject = "subject",
        RecurrenceState = RecurrenceState.Master,
    };
 
    RecurrencePattern pattern = new RecurrencePattern();
    pattern.Frequency = RecurrenceFrequency.Daily;
    pattern.DaysOfWeekMask = RecurrenceDay.EveryDay;
           
    RecurrenceRange range = new RecurrenceRange();
    range.Start = new DateTime(2012, 10, 19, 13, 0, 0);
    range.RecursUntil = new DateTime(2012, 10, 30, 15, 0, 0);
     
    DailyRecurrenceRule rrule = new DailyRecurrenceRule(2, range);
    app.RecurrenceRule = rrule.ToString();
    //DTSTART:20121019T130000Z\r\nDTEND:20121019T130000Z\r\nRRULE:FREQ=DAILY;UNTIL=20121030T150000Z;INTERVAL=2;BYDAY=MO,TU,WE,TH,FR,SA,SU\r\n
 
    RadScheduler1.InsertAppointment(app);
}

3 Answers, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 24 Apr 2012, 11:24 AM
Hi,

I have tested your code with a XML provider for RadScheduler and everything works fine (see attached image) -- all the recurring appointments are shown appropriately.

Could you verify that you do not have any time span constraints on the appointments been withdrawn from the database? It would be very helpful if you could send us a sample project, with this behavior replicated in it, via a support ticket so we will be able to troubleshoot the issues locally.

Regards,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Gopala
Top achievements
Rank 1
answered on 03 Dec 2012, 10:07 AM
Hi Ivana,

I have copy pasted the same code locally.As other person was saying i am also getting the master appointment not the child's.
Please let me know if any thing do i need to do andhow come you have the proper results though.

Regards,
Gopala
0
Plamen
Telerik team
answered on 05 Dec 2012, 02:07 PM
Hi Gopala,

 
i have tested similar code once again and it worked properly with the latest version of RadControls. I am attaching my test page. Please review it and let me know if you have further questions.

Hope this will be helpful.

Regards,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
cy
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Gopala
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or