I want to set first day of week to monday instead of sunday in kendo scheduler It is working fine for me if i am using DatePicker, but not for Scheduler.
相关问题
- MVC-Routing,Why i can not ignore defaults,The matc
- parameters in routing do not work MVC 3
- There is no ViewData item with the key 'taskTy
- TextBoxFor decimal
- Install ASP.NET 5.0 version of System.ServiceModel
相关文章
- How to get a list of connected clients on SignalR
- How do you redirect to the calling page in ASP.NET
- Change color of bars depending on value in Highcha
- The program '[4432] iisexpress.exe' has ex
- ASP.Net MVC 4 Bundles
- How to get server path of physical path ?
- Cannot implicitly convert Web.Http.Results.JsonRes
- entity type has no key defined - Code first
KendoUI Scheduler widget the first day of the week is read from the current culture.
As of Kendo UI v2015.2.805, you need to set the calendar.firstDay property of the current Kendo culture. However, this property is not public, so you'll need to use the following array accessor in order to avoid compile errors in Visual Studio.
Then, as Vishn Vikraman pointed out, instantiate your scheduler:
Can be made possible with one line of code. Add
kendo.culture().calendar.firstDay = 1;
before kendo scheduler declaration
$("#yourID").kendoScheduler({... })
Found the solution here and worked for me. Kendo culture setting
In your
kendo.all.min.js
script file, look for:calendars:{standard:{days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
and change Sunday to the end of the list, like this:
calendars:{standard:{days:{names:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday", "Sunday"]
Do the same for the short names, right after the "calendars" part in the script
I see two options depending on what you want:
kendo.cultures["en-US"].calendars.standard.firstDay
(replaceen-US
by you culture code or useen-US
for the default).