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

Kendo UI RangeSlider TagHelper RangeSliderTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("kendo-rangeslider")]
[RestrictChildren("slider-tooltip", new string[] { })]
[OutputElementHint("div")]
public class RangeSliderTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperBaseRangeSliderTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperBase.MinimumValidatorTagHelperBase.MaximumValidatorTagHelperBase.Init(TagHelperContext)TagHelperBase.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-rangeslider name="rangeslider"
       increase-button-title="Right"
       decrease-button-title="Left"
       min="0" max="10"
       small-step="1"
       large-step="10">
   </kendo-rangeslider>

Child Tagsslider-tooltip

Constructors

Initializes a new instance of the RangeSliderTagHelper class.

C#
public RangeSliderTagHelper(IKendoHtmlGenerator generator)
Parameters:generatorIKendoHtmlGenerator

Properties

An expression to be evaluated against the current model.

C#
public ModelExpression For { get; set; }

The delta with which the value will change when the user presses the Page Up or Page Down key (the drag handle must be focused). Note: The allied largeStep will also set large tick for every large step.

C#
public double? LargeStep { get; set; }

The title of the left drag handle of the RangeSlider.

C#
public string LeftDragHandleTitle { get; set; }

The maximum value of the RangeSlider.

C#
public double? Max { get; set; }

The minimum value of the RangeSlider.

C#
public double? Min { get; set; }

The name of the JavaScript function that will handle the change event. Fires when the RangeSlider value changes as a result of selecting a new value with one of the drag handles or the keyboard.

C#
public string OnChange { get; set; }

The name of the JavaScript function that will handle the slide event. Fires when the user drags the drag handle to a new position.

C#
public string OnSlide { get; set; }

The orientation of a RangeSlider - "horizontal" or "vertical".

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

The title of the right drag handle of the RangeSlider.

C#
public string RightDragHandleTitle { get; set; }

The selection end value of the RangeSlider.

C#
public double? SelectionEnd { get; set; }

The selection start value of the RangeSlider.

C#
public double? SelectionStart { get; set; }

The small step value of the RangeSlider. The underlying value will be changed when the end user (1) clicks on the increase or decrease buttons of the RangeSlider, (2) presses the arrow keys (the drag handle must be focused), or (3) drags the drag handle.

C#
public double? SmallStep { get; set; }

Denotes the location of the tick marks in the RangeSlider. The available options are:

C#
public SliderTickPlacement? TickPlacement { get; set; }

The values of the RangeSlider.

C#
public double[] Values { get; set; }

Methods

Gets the initialization script.

C#
protected override string GetInitializationScript()
Returns:

string

The initialization script.

Overrides: TagHelperBase.GetInitializationScript()

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)