Kendo UI virtual TagHelper
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[SuppressTagRendering]
public class DropDownVirtualSettingsTaghelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseDropDownVirtualSettingsTaghelper
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the DropDownVirtualSettingsTaghelper class.
public DropDownVirtualSettingsTaghelper()
Properties
Specifies the height of the virtual item. All items in the virtualized list must have the same height. If the developer does not specify one, the framework will automatically set itemHeight based on the current theme and font size.
public double? ItemHeight { get; set; }
The changes introduced with the Kendo UI R3 2016 release enable you to determine if the valueMapper must resolve a value to an index or a value to a dataItem. This is configured through the mapValueTo option that accepts two possible values - "index" or "dataItem". By default, the mapValueTo is set to "index", which does not affect the current behavior of the virtualization process.For more information, refer to the article on virtualization.
public string MapValueTo { get; set; }
The component calls the valueMapper function when the component receives a value, that is not fetched from the remote server yet.
The component will pass the selected value(s) into the valueMapper function. In turn, the valueMapper implementation should return the respective data item(s) index/indices as specified via the map-value-to configuration.
As of the Kendo UI R3 2016 release, the implementation of the valueMapper function is optional. It is required only if the widget contains an initial value or if the value method is used
public string ValueMapper { 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.