I'm using ASP.NET MVC with Kendo UI version: "2014.2.716".
Is there a way to change the default '...' in the Kendo Scheduler control to a custom message with say '13 more events'?
This is what I have tried so far. I know I can capture the data bound event ...
@(Html.Kendo().Scheduler<MyViewModel>()
.Name("myScheduler")
.Selectable(true)
.EventTemplateId("event-template")
.Events(e =>
{
e.DataBound("calDataBound");
})
.Views(views =>
{
views.DayView();
views.WeekView();
views.MonthView();
views.AgendaView();
})
@* Other markup removed for brevity ... *@
... then in javascript use jQuery to get these elements ...
function calDataBound(e) {
$(".k-more-events span").each(function (index, element )
{
});
}
... but what I don't know is how would I get the number of events in the day represented by this cell?!
So this has worked for me ...
I also had to tweak the css for
.k-more-events
so that the panel was big enough to show the text e.g.