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.

Have schedule control week view start on monday

Thread ID:

Created:

Updated:

Platform:

Replies:

118027 Jan 21,2015 04:43 PM Jan 27,2015 12:30 AM ASP.NET MVC 3
loading
Tags: Schedule
Ralph Mounzer
Asked On January 21, 2015 04:43 PM

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

Velmurugan S [Syncfusion]
Replied On January 22, 2015 04:19 AM

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



Ralph Mounzer
Replied On January 26, 2015 04:58 PM

Great ! Thank you

Velmurugan S [Syncfusion]
Replied On January 27, 2015 12:30 AM

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



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.

;