Is it possible to change the calendar week start day of the week?

1 Answer 27 Views
Calendar
Peter
Top achievements
Rank 1
Peter asked on 23 Feb 2024, 03:41 PM

Can we change the starting day of the week from Sunday to Monday? i.e. MO, TU, WE, TH, FR, SA, SU

Or Sunday to Saturday? i.e. SA, SU, MO, TU, WE, TH, FR

Instead of the current: SU, MO, TU, WE, TH, FR, SA

1 Answer, 1 is accepted

Sort by
0
Mihaela
Telerik team
answered on 28 Feb 2024, 03:22 PM

Hello Peter,

By design, whe first week day depends on the current culture. You can set the desired culture by using the Culture() method:

    @(Html.Kendo().Calendar()
            .Name("calendar")
            .Culture("de-DE")
    )

Also, yo can change the starting day of the week no matter the specified culture by using the culture() method. For example:

<script>
    kendo.culture().calendar.firstDay= 1; //"Monday"
</script>

    @(Html.Kendo().Calendar()
            .Name("calendar")
    )

Here is a REPL sample for your reference:

https://netcorerepl.telerik.com/wIOmQMvf17TGhHYR54

I hope that helps.

 

Regards,
Mihaela
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages. If you're new to the Telerik family, be sure to check out our getting started resources, as well as the only REPL playground for creating, saving, running, and sharing server-side code.

Tags
Calendar
Asked by
Peter
Top achievements
Rank 1
Answers by
Mihaela
Telerik team
Share this question
or