I have added a view to my scheduler:
@(Html.Kendo().Scheduler<MyEventViewModel>()
.Name(
"Scheduler"
)
.Views(v => {
v.DayView();
v.WeekView();
v.CustomView(
"MyCustomView"
);
})
...and so on
...and I have defined this custom view as follows:
var
MyCustomView = kendo.ui.MultiDayView.extend({
options: {
selectedDateFormat:
"{0:D} - {1:D}"
,
title: "this does not work"
},
title: "this does not work, either",
calculateDateRange:
function
() {
var
start =
this
.options.date,
idx, length,
dates = [];
for
(idx = 0, length = 14; idx < length; idx++) {
dates.push(start);
start = kendo.date.nextDay(start);
}
this
._render(dates);
}
})
But I cannot seem to provide a title to this view to appear on the button. Specifying a title either in the view config, or the options of the view config does not work, and the CustomView method takes only one argument. I believe the javascript equivalent takes two arguments, with one being the title of the custom view, but the MVC version does not. ...so where do I set the title?