Hi, I'm new here.
I'm developing a site which uses the Calendar, one requirement is that I need to be able to color the days of the month depending on the model state.
I've seen a couple of examples that has the Calendar declared in javascript, I'm working with Razor, in a .cshtml file. I can freely access a property in the model to return a CssClass string.
my calendar is written like this.
@(Html.Kendo().Calendar()
.Name("Trafikkalender")
.Culture("sv-SE")
.HtmlAttributes(new {style = "width: 100%;"})
.Events(e => e.Change("DateClick").Navigate("Navigate"))
.Format("dd MM yyyy")
)
I know I need the .MonthTemplate("") property for my purpose, but I don't know what the syntax is for the string. the Model object returns a custom date object with a DateTime as input, how would I accomplish my goal? the examples and demos I've found here are very poorly commented/explained, I need more information.