Have schedule control week view start on monday

The schedule week view always starts on a Sunday and ends on a Saturday.
I would like to the week view to start on a Monday and end on a Sunday and I would like to know how do so.
Thank you.
Ralph

3 Replies

VS Velmurugan S Syncfusion Team January 22, 2015 09:19 AM UTC

Hi Ralph,

Thanks for using Syncfusion products.

We have prepared a workaround sample with the ““Schedule control Custom Views support” which try to meet your requirement, “week view to start on a Monday and end on a Sunday”. Please find the following code snippet.

<Code>

@{

            List<string> views = new List<string>() { "Day","Week","WorkWeek","Month","CustomView" };      // You can specify the required views in this list

        }

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

        .Width("100%")

        .Height("525px")

        .Views(views)                       // Here we are passing the views collection to the schedule control

        .CurrentView(CurrentView.CustomView)     // This will set the default schedule view as CustomView

        .RenderDates(dt => dt.Start(new DateTime(2014, 11, 3)).End(new DateTime(2014, 11, 9)))    // We need to specify the Monday Date For Start and Sunday Date for End

        .EnableAppointmentNavigation(false)

        .AppointmentSettings(fields => fields.Datasource(Model)

            .Id("Id")

            .Subject("Subject")

            .StartTime("StartTime")

            .EndTime("EndTime")

            .Recurrence("Recurrence")

            .RecurrenceRule("RecurrenceRule"))

            )

</Code>

We have also prepared a sample using the above code snippets which can be downloaded from the following location.

http://www.syncfusion.com/downloads/support/directtrac/118027/BasicScheduleSample-836260487.zip

Please let us know if it helps and any further assistance on this.

Regards,

Velmurugan




RM Ralph Mounzer January 26, 2015 09:58 PM UTC

Great ! Thank you


VS Velmurugan S Syncfusion Team January 27, 2015 05:30 AM UTC

Hi Ralph,

Thanks for your greetings.

Please let us know if you need any further assistance, we will be happy to help you.

Regards,

Velmurugan



Loader.
Up arrow icon