Defines the fluent interface for configuring the SchedulerBaseViewBuilder<TView, TViewBuilder>.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TView
TViewBuilder
Syntax:
public class SchedulerBaseViewBuilder<TView, TViewBuilder> where TView : class, ISchedulerView where TViewBuilder : SchedulerBaseViewBuilder<TView, TViewBuilder>
Inheritance: objectSchedulerBaseViewBuilder<TView, TViewBuilder>
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the SchedulerBaseViewBuilder<TView, TViewBuilder> class.
public SchedulerBaseViewBuilder(TView view)
The resource
Fields
view
TView
protected readonly TView view
Methods
Sets the editing configuration of the current scheduler view.
public TViewBuilder Editable(Action<SchedulerViewEditableSettingsBuilder> configurator)
The lambda which configures the editing
Returns:TViewBuilder
If set to true the user would be able to create new scheduler events and modify or delete existing ones. Default value is true.
public TViewBuilder Editable(bool isEditable)
The isEditable
Returns:TViewBuilder
Defines the template used by the view to render the Scheduler events. The available fields in the template are:
- description: The event description.
- end: The event end date.
- resources: The event resources.
- start: The event start date.
- title: The event title.
public TViewBuilder EventTemplate(string eventTemplate)
The value that configures the template content.
Returns:TViewBuilder
Defines the template used by the view to render the Scheduler events. The available fields in the template are:
- description: The event description.
- end: The event end date.
- resources: The event resources.
- start: The event start date.
- title: The event title.
public TViewBuilder EventTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:TViewBuilder
Defines the template used by the view to render the Scheduler events. The available fields in the template are:
- description: The event description.
- end: The event end date.
- resources: The event resources.
- start: The event start date.
- title: The event title.
public TViewBuilder EventTemplateHandler(string eventTemplate)
The JavaScript function that returns the template.
Returns:TViewBuilder
Defines the template used by the view to render the Scheduler events. The available fields in the template are:
- description: The event description.
- end: The event end date.
- resources: The event resources.
- start: The event start date.
- title: The event title.
public TViewBuilder EventTemplateId(string eventTemplateId)
The "id" attribute of the external Kendo UI Template.
Returns:TViewBuilder
Defines the template used by the view to render the Scheduler events. The available fields in the template are:
- description: The event description.
- end: The event end date.
- resources: The event resources.
- start: The event start date.
- title: The event title.
public TViewBuilder EventTemplateView(MvcHtmlString eventTemplate)
The Razor View that contains the template.
Returns:TViewBuilder
Sets the resources grouping configuration of the view.
public TViewBuilder Groups(Action<SchedulerGroupBuilder> configuration)
The lambda which configures the view grouping
Returns:TViewBuilder
Sets grouping by date.
public TViewBuilder Groups(bool date)
The grouping by date
Returns:TViewBuilder
Sets the orientation of the group headers
public TViewBuilder Groups(SchedulerGroupOrientation orientation)
The orientation
Returns:TViewBuilder
If set to true the view will be initially selected by the scheduler widget. Default value is false.
public TViewBuilder Selected(bool isSelected)
The isSelected
Returns:TViewBuilder
The format used to display the selected date. Uses kendo.format. Contains two placeholders - "{0}" and "{1}" which represent the start and end date displayed by the view.
public TViewBuilder SelectedDateFormat(string selectedDateFormat)
The selectedDateFormat.
Returns:TViewBuilder
The format used to display the selected short date. Uses kendo.format. Contains two placeholders - "{0}" and "{1}" which represent the start and end date displayed by the view.
public TViewBuilder SelectedShortDateFormat(string selectedShortDateFormat)
The selectedShortDateFormat.
Returns:TViewBuilder
The user-friendly title of the view displayed by the scheduler.