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

Kendo UI Splitter TagHelper SplitterTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("kendo-splitter")]
[RestrictChildren("pane", new string[] { })]
[OutputElementHint("div")]
public class SplitterTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperBaseSplitterTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperBase.MinimumValidatorTagHelperBase.MaximumValidatorTagHelperBase.Process(TagHelperContext, TagHelperOutput)TagHelperBase.GetInitializator()TagHelperBase.VerifySettings()TagHelperBase.SerializeTemplates()TagHelperBase.GenerateId(TagHelperOutput)TagHelperBase.CreateHandler(string)TagHelperBase.GetRangeValidationParameter<TValue>(ModelExplorer, string)TagHelperBase.ExtractEditFormat(string)TagHelperBase.ToDictionaryHandler(IDictionary<string, string>)TagHelperBase.AddSelfToTemplate(TagHelperContext)TagHelperBase.ViewContextTagHelperBase.GeneratorTagHelperBase.InitializerTagHelperBase.WriterTagHelperBase.ScriptAttributesTagHelperBase.NameTagHelperBase.IdTagHelperBase.SelectorTagHelperBase.IdPrefixTagHelperBase.IsInClientTemplateTagHelperBase.DeferredTagHelperBase.AsModuleTagHelper.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-splitter name="splitter" orientation="SplitterOrientation.Vertical" click-move-click="true">
    <pane>Pane 1</pane>
    <pane>Pane 2</pane>
</kendo-splitter>

Child Tagspane

Constructors

Initializes a new instance of the SplitterTagHelper class.

C#
public SplitterTagHelper(IKendoHtmlGenerator generator)
Parameters:generatorIKendoHtmlGenerator

Properties

Determines whether the click move click interaction would be enabled as an alternative of the drag and drop resizing of the Splitter. By default the alternative is enabled.

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

The name of the JavaScript function that will handle the collapse event. Triggered when a pane of a Splitter is collapsed.

C#
public string OnCollapse { get; set; }

The name of the JavaScript function that will handle the contentLoad event. Triggered when the content for a pane has finished loading from a remote endpoint.

C#
public string OnContentLoad { get; set; }

The name of the JavaScript function that will handle the error event. Triggered when the AJAX request that fetches a pane content has failed.

C#
public string OnError { get; set; }

The name of the JavaScript function that will handle the expand event. Triggered when a pane of a Splitter is expanded.

C#
public string OnExpand { get; set; }

The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the Splitter is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public string OnKendoKeydown { get; set; }

The name of the JavaScript function that will handle the layoutChange event. This event is now obsolete and will be removed in the future. Please use the resize event instead.Fires when the splitter layout has changed

C#
public string OnLayoutChange { get; set; }

The name of the JavaScript function that will handle the resize event. Triggered when a pane is resized.

C#
public string OnResize { get; set; }

Specifies the orientation in which the splitter panes will be ordered

C#
public SplitterOrientation? Orientation { get; set; }

Methods

Gets the initialization script.

C#
protected override string GetInitializationScript()
Returns:

string

The initialization script.

Overrides: TagHelperBase.GetInitializationScript()

C#
public override void Init(TagHelperContext context)
Parameters:contextTagHelperContext

Overrides: TagHelperBase.Init(TagHelperContext)

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

Task

Overrides: TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

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

IDictionary<string, object>

Overrides: TagHelperBase.Serialize()

SerializeEvents method.

C#
protected override Dictionary<string, object> SerializeEvents()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeEvents()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeSettings()

Writes the HTML output.

C#
protected override void WriteHtml(TagHelperOutput output)
Parameters:outputTagHelperOutput

The TagHelper output.

Overrides: TagHelperBase.WriteHtml(TagHelperOutput)