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

Kendo UI editable TagHelper SchedulerEditableSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[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: ITagHelperITagHelperComponentITemplateComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-scheduler name="scheduler">
    <editable confirmation="true"></editable>
</kendo-scheduler>

Constructors

Initializes a new instance of the SchedulerEditableSettingsTagHelper class.

C#
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.

C#
public bool? Confirmation { get; set; }

If set to true the user can create new events. Creating is enabled by default.

C#
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.

C#
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.

C#
public string EditRecurringMode { get; set; }

Enables or disables the configuration.

C#
public bool? Enabled { get; set; }

If set to true the scheduler allows event moving. Dragging the event changes the start and end time.

C#
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.

C#
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.

C#
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.

C#
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.

C#
public string TemplateId { get; set; }

Configures the templates for the SchedulerEditableSettings.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

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.

C#
public IHtmlContent TemplateView { get; set; }

If set to true the user can update events. Updating is enabled by default.

C#
public bool? Update { get; set; }

WindowSettings member.

C#
[HtmlAttributeNotBound]
public Dictionary<string, object> WindowSettings { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Serializes the defined templates.

C#
public Dictionary<string, object> SerializeTemplates()
Returns:

Dictionary<string, object>