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

MultiViewCalendarSelectionSettingsBuilder

Methods

Dates(System.Collections.Generic.IList)

Defines list of dates. This list determines which dates to be rendered with action link.

Parameters

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

List of System.DateTime objects

Example


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

Action(System.Web.Routing.RouteValueDictionary)

Sets the action to which the date should navigate

Parameters

routeValues - System.Web.Routing.RouteValueDictionary

The route values of the Action method.

Example


             @( Html.Kendo().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .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 item should 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().MultiViewCalendar()
                        .Name("MultiViewCalendar")
                        .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?