We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Appointment missing when adding recurrence

Thread ID:

Created:

Updated:

Platform:

Replies:

121385 Dec 8,2015 11:12 AM Dec 9,2015 03:37 AM ASP.NET MVC 1
loading
Tags: Schedule
Tommy Klausen
Asked On December 8, 2015 11:12 AM

Hi.

When I try to add and appointment with recurrence the apointment won`t show up in the scheduler.

This is from the the index.cshtml file:

@{List<string> view = new List<string>() { "WorkWeek" };}

@(Html.EJ().Schedule("Schedule1")

.Width("100%")

.Height("525px")

.Views(view)

.CurrentDate(DateTime.Now)

.AppointmentSettings(fields => fields.Datasource(Model)   
     .Id("BookingId")
     .StartTime("StartTime")
     .EndTime("EndTime")
     .Subject("Subject")
     .Recurrence("Recurrence")
     .RecurrenceRule("RecurrenceRule")


And this is from my model:

public partial class Lesson
    {
        public int Id { get; set; }
        public System.DateTime StartTime { get; set; }
        public System.DateTime EndTime { get; set; }
        public string Subject { get; set; }
        public Nullable<bool> Recurrence { get; set; }
        public string RecurrenceRule { get; set; }
    }

And I`m not sure what my data in my Sql database should look like for the recurrence and recurrencerule fields.
Is it OK with 'true' and 'FREQ=WEEKLY; INTERVAL=1; BYDAY=MO; UNTIL=12/23/2015' for testing purposes?
I`m not sure about the BYDAY data...is it necessary?

Tommy

Velmurugan S [Syncfusion]
Replied On December 9, 2015 03:37 AM

Hi Tommy,

Thanks for contacting Syncfusion support.

Please find the responses for your queries:

Query #1: When I try to add and appointment with recurrence the apointment won`t show up in the scheduler.

We have prepared the sample with your given code example, which can be downloaded from the following location. In the below sample, appointments (normal and recurrence) are displayed properly in the Scheduler.

http://www.syncfusion.com/downloads/support/forum/121385/ze/ScheduleRecurrenceSample-495809230

Query #2: And I`m not sure what my data in my Sql database should look like for the recurrence and recurrencerule fields. Is it OK with 'true' and 'FREQ=WEEKLY; INTERVAL=1; BYDAY=MO; UNTIL=12/23/2015' for testing purposes? I`m not sure about the BYDAY data...is it necessary?


You can pass the recurrence and recurrencerule field value as mentioned above. This will render the appointment on Monday within the time period of StartTime (ex: 12/7/2015) week to EndTime (ex: 12/23/2015) week. 
The BYDAY holds the DAY values, representing on which the appointments actually renders. For example, Create the weekly appointment, and select the day(s) from the day options (Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday). When Monday is selected, the first two letters of the selected day “MO” is saved in the BYDAY property. When multiple days are selected, the values are separated by commas. We request you to refer to our online documentation to know more about the Recurrence and RecurrenceRule field.


UG Link: http://help.syncfusion.com/js/schedule/working-with-appointments#recurrence-options


Regards,

Velmurugan


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;