Defines the fluent API for configuring AutoCompleteVirtualSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class AutoCompleteVirtualSettingsBuilder
Inheritance: objectAutoCompleteVirtualSettingsBuilder
Inherited Members
Constructors
AutoCompleteVirtualSettingsBuilder method.
public AutoCompleteVirtualSettingsBuilder(AutoCompleteVirtualSettings container)
Properties
Gets the settings being configured.
protected AutoCompleteVirtualSettings Container { get; }
Methods
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 AutoCompleteVirtualSettingsBuilder ItemHeight(double value)
The value for ItemHeight
Returns:AutoCompleteVirtualSettingsBuilder
Returns the current AutoCompleteVirtualSettingsBuilder instance.
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 AutoCompleteVirtualSettingsBuilder MapValueTo(string value)
The value for MapValueTo
Returns:AutoCompleteVirtualSettingsBuilder
Returns the current AutoCompleteVirtualSettingsBuilder instance.
public AutoCompleteVirtualSettingsBuilder ValueMapper(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:AutoCompleteVirtualSettingsBuilder
Returns the current AutoCompleteVirtualSettingsBuilder instance.
public AutoCompleteVirtualSettingsBuilder ValueMapper(string handler)
The name of the JavaScript function that will be evaluated.
Returns:AutoCompleteVirtualSettingsBuilder
Returns the current AutoCompleteVirtualSettingsBuilder instance.