Hi!
i am creating a custom schedule view like that:
I would like to show the week number on selectedDateFormat. Right now it shows: {week start date} - {week end date}.
Is that possible to change format to show the week number?
Thanks!
i am creating a custom schedule view like that:
var
SchedulerWeekView = kendo.ui.MultiDayView.extend({
options: {
selectedDateFormat:
"{0:D} - {1:D}"
},
nextDate:
function
() {
var
startDate =
this
.startDate();
return
new
Date(startDate.setDate(startDate.getDate() + 7));
},
previousDate:
function
() {
var
endDate =
this
.endDate();
return
new
Date(endDate.setDate(endDate.getDate() - 7));
},
name:
"SchedulerWeekView"
,
calculateDateRange:
function
() {
var
selectedDate =
this
.options.date,
start = kendo.date.dayOfWeek(selectedDate,
this
.calendarInfo().firstDay, -1),
idx, length,
dates = [];
for
(idx = 0, length = 7; idx < length; idx++) {
if
(start.getDay() <= 5 && start.getDay() > 0) {
dates.push(start);
}
start = kendo.date.nextDay(start);
}
this
._render(dates);
}
});
Is that possible to change format to show the week number?
Thanks!