<kendo:autoComplete-virtual>

Enables the virtualization feature of the widget. The configuration can be set on an object, which contains two properties - itemHeight and valueMapper.For detailed information, refer to the article on virtualization.

Example

<kendo:autoComplete>
    <kendo:autoComplete-virtual></kendo:autoComplete-virtual>
</kendo:autoComplete>

Configuration Attributes

itemHeight float

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.

Example

<kendo:autoComplete-virtual itemHeight="itemHeight">
</kendo:autoComplete-virtual>

mapValueTo java.lang.String

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.

Example

<kendo:autoComplete-virtual mapValueTo="mapValueTo">
</kendo:autoComplete-virtual>

valueMapper java.lang.String

Example

<kendo:autoComplete-virtual valueMapper="valueMapper">
</kendo:autoComplete-virtual>

Event Attributes

valueMapper String

Example

<kendo:autoComplete-virtual valueMapper="handle_valueMapper">
</kendo:autoComplete-virtual>
<script>
    function handle_valueMapper(e) {
        // Code to handle the valueMapper event.
    }
</script>

Event Tags

kendo:autoComplete-virtual-valueMapper

Example

<kendo:autoComplete-virtual>
    <kendo:autoComplete-virtual-valueMapper>
        <script>
            function(e) {
                // Code to handle the valueMapper event.
            }
        </script>
    </kendo:autoComplete-virtual-valueMapper>
</kendo:autoComplete-virtual>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy