alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ListViewEvents<TValue>

    Configure handlers to handle the events with the ListView component.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    ListViewEvents<TValue>
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.Dispose(bool)
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.Lists
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ListViewEvents<TValue> : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    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
    [Parameter]
    public EventCallback<ClickEventArgs<TValue>> Clicked { get; set; }
    Property Value
    Type Description
    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
    [Parameter]
    public EventCallback<object> Created { get; set; }
    Property Value
    Type Description
    EventCallback<object>

    An event callback function.

    Destroyed

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

    Declaration
    [Parameter]
    public EventCallback<object> Destroyed { get; set; }
    Property Value
    Type Description
    EventCallback<object>

    An event callback function.

    OnActionBegin

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

    Declaration
    [Parameter]
    public EventCallback<ActionEventsArgs> OnActionBegin { get; set; }
    Property Value
    Type Description
    EventCallback<ActionEventsArgs>

    An event callback function.

    OnActionComplete

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

    Declaration
    [Parameter]
    public EventCallback<ActionEventsArgs> OnActionComplete { get; set; }
    Property Value
    Type Description
    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
    [Parameter]
    public EventCallback<ActionFailureEventsArgs> OnActionFailure { get; set; }
    Property Value
    Type Description
    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
    [Parameter]
    public EventCallback<BackEventArgs<TValue>> OnBack { get; set; }
    Property Value
    Type Description
    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
    Task
    Overrides
    ComponentBase.OnInitializedAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved