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

Defines the fluent interface for configuring the SchedulerAgendaView.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TView

Syntax:

C#
public class SchedulerAgendaViewBuilder<TView> : SchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>> where TView : SchedulerAgendaView

Inheritance: objectSchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>>SchedulerAgendaViewBuilder<TView>

Inherited Members SchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>>.viewSchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>>.Title(string)SchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>>.Editable(Action<SchedulerViewEditableSettingsBuilder>)SchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>>.Editable(bool)SchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>>.EventTemplate(string)SchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>>.EventTemplateId(string)SchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>>.EventTemplateView(MvcHtmlString)SchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>>.EventTemplateHandler(string)SchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>>.EventTemplate<TModel>(TemplateBuilder<TModel>)SchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>>.SelectedDateFormat(string)SchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>>.SelectedShortDateFormat(string)SchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>>.Selected(bool)SchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>>.Groups(SchedulerGroupOrientation)SchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>>.Groups(bool)SchedulerBaseViewBuilder<TView, SchedulerAgendaViewBuilder<TView>>.Groups(Action<SchedulerGroupBuilder>)object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public SchedulerAgendaViewBuilder(TView view)
Parameters:viewTView

Methods

Defines the template used by the Agenda view to render the date of the Scheduler events. The available field in the template is "date", which represents the event date.

C#
public SchedulerAgendaViewBuilder<TView> EventDateTemplate(string eventDateTemplate)
Parameters:eventDateTemplatestring

The value that configures the template content.

Returns:

SchedulerAgendaViewBuilder<TView>

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.AgendaView(x=&gt;x.EventDateTemplate("&lt;strong&gt;#= kendo.toString(date, 'dd-MM-yyyy')#&lt;/strong&gt;"));
})
)

Defines the template used by the Agenda view to render the date of the Scheduler events. The available field in the template is "date", which represents the event date.

C#
public SchedulerAgendaViewBuilder<TView> EventDateTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

SchedulerAgendaViewBuilder<TView>

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.AgendaView(x=&gt;x.EventDateTemplate(Html.Kendo().Template().AddHtml("&lt;strong&gt;${kendo.toString(data.date, 'dd-MM-yyyy')}&lt;/strong&gt;")));
})
)

Defines the template used by the Agenda view to render the date of the Scheduler events. The available field in the template is "date", which represents the event date.

C#
public SchedulerAgendaViewBuilder<TView> EventDateTemplateHandler(string eventDateTemplate)
Parameters:eventDateTemplatestring

The JavaScript function that returns the template.

Returns:

SchedulerAgendaViewBuilder<TView>

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.AgendaView(x=&gt;x.EventDateTemplateHandler("getEventDateTemplate"));
})
)
&lt;script&gt;
function getEventDateTemplate(data) {
return `&lt;strong&gt;${kendo.toString(data.date, 'dd-MM-yyyy')}&lt;/strong&gt;`;
}
&lt;/script&gt;

Defines the template used by the Agenda view to render the date of the Scheduler events. The available field in the template is "date", which represents the event date.

C#
public SchedulerAgendaViewBuilder<TView> EventDateTemplateId(string eventDateTemplateId)
Parameters:eventDateTemplateIdstring

The "id" attribute of the external Kendo UI Template.

Returns:

SchedulerAgendaViewBuilder<TView>

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.AgendaView(x=&gt;x.EventDateTemplateId("eventDateTemplate"));
})
)
&lt;script id="eventDateTemplate" type="text/x-kendo-template"&gt;
&lt;strong&gt;#= kendo.toString(date, 'dd-MM-yyyy')#&lt;/strong&gt;
&lt;/script&gt;

Defines the template used by the Agenda view to render the date of the Scheduler events. The available field in the template is "date", which represents the event date.

C#
public SchedulerAgendaViewBuilder<TView> EventDateTemplateView(MvcHtmlString eventDateTemplate)
Parameters:eventDateTemplateMvcHtmlString

The Razor View that contains the template.

Returns:

SchedulerAgendaViewBuilder<TView>

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.AgendaView(x=&gt;x.EventDateTemplateView(Html.Partial("TemplateView")));
})
)

Defines the template used by the Agenda view to render the time of the Scheduler events. The available fields in the template are:

  • description: The event description.
  • end: The event end date.
  • isAllDay: If "true", the event is "all day".
  • resources: The event resources.
  • start: The event start date.
  • title: The event title.
C#
public SchedulerAgendaViewBuilder<TView> EventTimeTemplate(string eventTimeTemplate)
Parameters:eventTimeTemplatestring

The value that configures the template content.

Returns:

SchedulerAgendaViewBuilder<TView>

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.AgendaView(x=&gt;x.EventTimeTemplate("template content"));
})
)

Defines the template used by the Agenda view to render the time of the Scheduler events. The available fields in the template are:

  • description: The event description.
  • end: The event end date.
  • isAllDay: If "true", the event is "all day".
  • resources: The event resources.
  • start: The event start date.
  • title: The event title.
C#
public SchedulerAgendaViewBuilder<TView> EventTimeTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

SchedulerAgendaViewBuilder<TView>

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.AgendaView(x=&gt;x.EventTimeTemplate(Html.Kendo().Template().AddHtml("${kendo.toString(data.start, "t")} - ${kendo.toString(data.end, "t")}")));
})
)

Defines the template used by the Agenda view to render the time of the Scheduler events. The available fields in the template are:

  • description: The event description.
  • end: The event end date.
  • isAllDay: If "true", the event is "all day".
  • resources: The event resources.
  • start: The event start date.
  • title: The event title.
C#
public SchedulerAgendaViewBuilder<TView> EventTimeTemplateHandler(string eventTimeTemplate)
Parameters:eventTimeTemplatestring

The JavaScript function that returns the template.

Returns:

SchedulerAgendaViewBuilder<TView>

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.AgendaView(x=&gt;x.EventTimeTemplateHandler("getEventTimeTemplate"));
})
)

Defines the template used by the Agenda view to render the time of the Scheduler events. The available fields in the template are:

  • description: The event description.
  • end: The event end date.
  • isAllDay: If "true", the event is "all day".
  • resources: The event resources.
  • start: The event start date.
  • title: The event title.
C#
public SchedulerAgendaViewBuilder<TView> EventTimeTemplateId(string eventTimeTemplateId)
Parameters:eventTimeTemplateIdstring

The "id" attribute of the external Kendo UI Template.

Returns:

SchedulerAgendaViewBuilder<TView>

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.AgendaView(x=&gt;x.EventTimeTemplateId("TemplateID"));
})
)

Defines the template used by the Agenda view to render the time of the Scheduler events. The available fields in the template are:

  • description: The event description.
  • end: The event end date.
  • isAllDay: If "true", the event is "all day".
  • resources: The event resources.
  • start: The event start date.
  • title: The event title.
C#
public SchedulerAgendaViewBuilder<TView> EventTimeTemplateView(MvcHtmlString eventTimeTemplate)
Parameters:eventTimeTemplateMvcHtmlString

The Razor View that contains the template.

Returns:

SchedulerAgendaViewBuilder<TView>

Example:
C#
@(Html.Kendo().Scheduler&lt;Activity&gt;()
.Name("scheduler")
.Views(views =&gt;
{
views.AgendaView(x=&gt;x.EventTimeTemplateView(Html.Partial("Template")));
})
)