menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ListViewEvents<TValue> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ListViewEvents<TValue>

    Configure handlers to handle the events with the ListView component.

    Inheritance
    System.Object
    ListViewEvents<TValue>
    Namespace: Syncfusion.Blazor.Lists
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ListViewEvents<TValue> : OwningComponentBase
    Type Parameters
    Name Description
    TValue

    The generic type parameter.

    Constructors

    ListViewEvents()

    Declaration
    public ListViewEvents()

    Properties

    Clicked

    Gets or sets an event callback that is raised when a list item in the component is clicked.

    Declaration
    public EventCallback<ClickEventArgs<TValue>> Clicked { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<ClickEventArgs<TValue>>

    An event callback function.

    Remarks

    You can perform required action on list item click through this event.

    Created

    Gets or sets an event callback that is raised when the component is created.

    Declaration
    public EventCallback<object> Created { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    An event callback function.

    Destroyed

    Gets or sets an event callback that is raised when the component is destroyed.

    Declaration
    public EventCallback<object> Destroyed { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    An event callback function.

    OnActionBegin

    Gets or sets an event callback that is raised when each ListView action begins.

    Declaration
    public EventCallback<ActionEventsArgs> OnActionBegin { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<ActionEventsArgs>

    An event callback function.

    OnActionComplete

    Gets or sets an event callback that is raised when each ListView action is completed.

    Declaration
    public EventCallback<ActionEventsArgs> OnActionComplete { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<ActionEventsArgs>

    An event callback function.

    Remarks

    You can identify that an action is completed and perform required operations.

    OnActionFailure

    Gets or sets an event callback that is raised when the data fetch request from the remote server fails.

    Declaration
    public EventCallback<ActionFailureEventsArgs> OnActionFailure { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<ActionFailureEventsArgs>

    An event callback function.

    Remarks

    You can capture the failure and display the error based on your scenario.

    OnBack

    Gets or sets an event callback that is raised when the back icon is clicked in the nested list item.

    Declaration
    public EventCallback<BackEventArgs<TValue>> OnBack { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<BackEventArgs<TValue>>

    An event callback function.

    Remarks

    This event is used to trace the back button click in nested ListView and perform required actions.

    Methods

    OnInitializedAsync()

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type
    System.Threading.Tasks.Task
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved