Kendo UI editable TagHelper SchedulerEditableSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("editable", ParentTag = "kendo-scheduler", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("editable-window", new string[] { "scheduler-editable-template" })]
[SuppressTagRendering]
public class SchedulerEditableSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseSchedulerEditableSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-scheduler name="scheduler">
<editable confirmation="true"></editable>
</kendo-scheduler>
Child Tags
Constructors
Initializes a new instance of the SchedulerEditableSettingsTagHelper class.
public SchedulerEditableSettingsTagHelper()
Properties
If set to true the scheduler will display a confirmation dialog when the user clicks the "destroy" button.Can be set to a string which will be used as the confirmation text.
public bool? Confirmation { get; set; }
If set to true the user can create new events. Creating is enabled by default.
public bool? Create { get; set; }
If set to true the user can delete events from the view by clicking the "destroy" button. Deleting is enabled by default.
public bool? Destroy { get; set; }
Recurring events edit mode. The available modes are: - "dialog" (default) - displays a dialog that allows the user to choose whether the current occurrence or the entire series will be edited; - "series" - displays an editor for updating the entire series; - "occurrence" - only the current occurrence will be edited.
public string EditRecurringMode { get; set; }
If set to true the scheduler allows event moving. Dragging the event changes the start and end time.
public bool? Move { get; set; }
If set to true the scheduler allows event resizing. Dragging the resize handles changes the start or end time of the event.
public bool? Resize { get; set; }
The template which renders the editor.The template should contain elements whose name HTML attributes are set as the editable fields. This is how the Scheduler will know which field to update. The other option is to use MVVM bindings in order to bind HTML elements to data item fields.
public string Template { get; set; }
The template which renders the editor.The template should contain elements whose name HTML attributes are set as the editable fields. This is how the Scheduler will know which field to update. The other option is to use MVVM bindings in order to bind HTML elements to data item fields. This option expects the name of a JavaScript function that will be called to return the template.
public string TemplateHandler { get; set; }
The template which renders the editor.The template should contain elements whose name HTML attributes are set as the editable fields. This is how the Scheduler will know which field to update. The other option is to use MVVM bindings in order to bind HTML elements to data item fields. This option expects the ID of the script element that contains the template.
public string TemplateId { get; set; }
Configures the templates for the SchedulerEditableSettings.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
The template which renders the editor.The template should contain elements whose name HTML attributes are set as the editable fields. This is how the Scheduler will know which field to update. The other option is to use MVVM bindings in order to bind HTML elements to data item fields. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { get; set; }
If set to true the user can update events. Updating is enabled by default.
public bool? Update { get; set; }
WindowSettings member.
[HtmlAttributeNotBound]
public Dictionary<string, object> WindowSettings { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
Serializes the defined templates.