Recurrence problem

4 posts, 0 answers
  1. cy
    cy avatar
    3 posts
    Member since:
    Jan 2008

    Posted 20 Apr 2012 Link to this post

    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);
    }
  2. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 24 Apr 2012 Link to this post

    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.
  3. Gopala
    Gopala avatar
    1 posts
    Member since:
    Dec 2012

    Posted 03 Dec 2012 Link to this post

    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
  4. Plamen
    Admin
    Plamen avatar
    2969 posts

    Posted 05 Dec 2012 Link to this post

    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.
Back to Top