New to Telerik UI for ASP.NET Core? Download free 30-day trial

CalendarSelectionSettingsBuilder

Methods

Dates(System.Collections.Generic.IList)

Defines list of dates that must be rendered with action link.

Parameters

dates - System.Collections.Generic.IList<DateTime>

List of System.DateTime objects

Example


             @( Html.Kendo().Calendar()
                        .Name("Calendar")
                        .Selection(s => s.Dates(new List<DateTime>(){new DateTime(2024,1,4), new DateTime(2024,1,5)}))
            )

Action(Microsoft.AspNetCore.Routing.RouteValueDictionary)

Sets the action to which the specified dates must navigate.

Parameters

routeValues - Microsoft.AspNetCore.Routing.RouteValueDictionary

The route values of the Action method.

Example


             @( Html.Kendo().Calendar()
                        .Name("Calendar")
                        .Selection(s => s.Action("Save", "Home", new { id = "123" }).Dates(new List<DateTime>(){new DateTime(2024,1,4), new DateTime(2024,1,5)}))
            )

Action(System.String,System.String,System.Object)

Sets the action to which the specified dates must navigate.

Parameters

action - System.String

Name of the action.

controller - System.String

Name of the controller.

values - System.Object

The route values.

Example


             @( Html.Kendo().Calendar()
                        .Name("Calendar")
                        .Selection(s => s.Action("Save", "Home", new { id = "123" }).Dates(new List<DateTime>(){new DateTime(2024,1,4), new DateTime(2024,1,5)}))
            )

In this article
Not finding the help you need?