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


The Telerik UI ListView for ASP.NET Core exposes a number of JavaScript events that allow you to control the behavior of the UI component.

For a complete example of how to handle all ListView events triggered by user interaction, refer to the demo on using the events of the ListView .

Subscribing to Events

The following example demonstrates how to subscribe to the DataBound event.

    .DataSource(dataSource => dataSource
            .Read(read => read.Action("Products_Read", "ListView"))
        .Pageable(pageable => pageable
           .PageSizes(new[] { 5, 15, 21 })
    @addTagHelper *, Kendo.Mvc

    <kendo-listview name="listView"
        <datasource type="DataSourceTagHelperType.Ajax" page-size="21">
                <read url="@Url.Action("Products_Read", "ListView")" />
        <pageable enabled="true" />
        function onDataBound(e){
            var listview = $("#listView").data("kendoListView");
            listview.setOptions({selectable: "single"});  // Turn on the selectable mode of the ListView.
  ; // Select the first item.

Next Steps

See Also

In this article