SchedulerEditableSettingsBuilder
Methods
Create(System.Boolean)
If set to true the user can create new events. Creating is enabled by default.
Parameters
create - System.Boolean
The create
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Editable(e=>e.Create(true))
)
Destroy(System.Boolean)
If set to true the user can delete events from the view by clicking the "destroy" button. Deleting is enabled by default.
Parameters
destroy - System.Boolean
The destroy
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Editable(e=>e.Destroy(true))
)
Update(System.Boolean)
If set to true the user can update events. Updating is enabled by default.
Parameters
update - System.Boolean
The update
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Editable(e=>e.Update(true))
)
Template(System.String)
Defines the template that renders the event editors.
Parameters
template - System.String
The value that configures the template content.
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Editable(e=>e.Template("Template"))
)
TemplateId(System.String)
Defines the template that renders the event editors.
Parameters
templateId - System.String
The "id" attribute of the external Kendo UI Template.
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Editable(e=>e.TemplateId("TemplateID"))
)
<script id="TemplateID" type="text/x-kendo-template">
<label>Title: <input data-bind="value: title" /></label>
</script>
TemplateView(System.Web.Mvc.MvcHtmlString)
Defines the View that contains the template with the the event editors.
Parameters
template - System.Web.Mvc.MvcHtmlString
The Razor View that contains the event editors.
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Editable(e=>e.TemplateView(Html.Partial("TemplateView")))
)
TemplateHandler(System.String)
Defines the template that renders the event editors.
Parameters
template - System.String
The JavaScript function that returns the template.
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Editable(e=>e.TemplateHandler("getEditorTemplate"))
)
TemplateName(System.String)
Defines the EditorTemplate (View) that contains the event editors.
Parameters
name - System.String
The name of the View in the "EditorTemplates" folder.
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Editable(e=>e.TemplateName("TemplateName"))
)
Confirmation(System.String)
The text which the scheduler will display in a confirmation dialog when the user clicks the "destroy" button.
Parameters
message - System.String
The message
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Editable(e=>e.Confirmation("My confirmation message!"))
)
Resize(System.Boolean)
If set to false the resizing of the events will be disabled. Resizing is enabled by default.
Parameters
enable - System.Boolean
The resize option
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Editable(e=>e.Resize(true))
)
Move(System.Boolean)
If set to false the moving of the events will be disabled. Moving is enabled by default.
Parameters
enable - System.Boolean
The move option
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Editable(e=>e.Move(true))
)
Confirmation(System.Boolean)
If set to true the scheduler will display a confirmation dialog when the user clicks the "destroy" button. Confirmation dialog is enabled by default.
Parameters
enable - System.Boolean
The confirmation
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Editable(e=>e.Confirmation(true))
)
EditRecurringMode(Kendo.Mvc.UI.SchedulerEditRecurringMode)
Recurring events edit mode.
Parameters
editRecurringMode - SchedulerEditRecurringMode
The edit recurrence mode.
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Editable(e=>e.EditRecurringMode(SchedulerEditRecurringMode.Dialog))
)
Window(System.Action)
Configures the Scheduler Window instance, which is used for editing of events. The configuration is optional.
Parameters
configurator - System.Action<WindowBuilder>
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Editable(e=>e.Window(w=>w.Content("Window Content")))
)
TemplateComponentName(System.String)
Defines the editor template of the Scheduler created through a Template component.
Parameters
templateName - System.String
The name of the View that contains a Template component.
Example
@(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.Screening>()
.Name("scheduler")
.Editable(e=>e.TemplateComponentName("CustomSchedulerEditorTemplate"))
)