Class
ListViewCommandEventArgs

Provides data for ListView CRUD operation events including create, edit, update, cancel, and delete actions. Contains information about the affected data item, operation type, and the ability to cancel the operation.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class ListViewCommandEventArgs : EventArgs

Inheritance: objectEventArgsListViewCommandEventArgs

Inherited Members EventArgs.Empty

Constructors

ListViewCommandEventArgs()

Declaration

cs-api-definition
public ListViewCommandEventArgs()

Properties

IsCancelled

Controls whether the current CRUD operation should be cancelled and prevented from executing. Set to true to stop the operation based on validation, permissions, or business logic. Default value is false (operation will proceed).

Declaration

cs-api-definition
public bool IsCancelled { get; set; }

Property Value

bool

IsNew

Indicates whether the affected item is newly created through the ListView user interface rather than an existing data item. Returns true for items created through OnCreate operations. Returns false for existing items being edited, updated, or deleted.

Declaration

cs-api-definition
public bool IsNew { get; set; }

Property Value

bool

Item

Contains the data item affected by the CRUD operation that can be cast to your model type for property access. Cast to your specific model type to access strongly-typed properties and perform data validation.

Declaration

cs-api-definition
public object Item { get; set; }

Property Value

object