menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ClearingEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ClearingEventArgs

    Provides information about the OnClear event callback.

    Inheritance
    System.Object
    ClearingEventArgs
    Namespace: Syncfusion.Blazor.Inputs
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ClearingEventArgs : Object
    Remarks

    This event is triggered before the file list is cleared when the user clicks the "clear" button. It provides an opportunity to cancel the clear operation or perform custom actions before the files are removed from the upload queue.

    Constructors

    ClearingEventArgs()

    Declaration
    public ClearingEventArgs()

    Properties

    Cancel

    Gets or sets a value indicating whether the file list clear action has been canceled.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    true to cancel the file list clear operation; otherwise, false.

    Remarks

    Setting this property to true will prevent the file list clear operation from proceeding. This allows for conditional clearing based on custom logic, user confirmation, or validation requirements.

    FilesData

    Gets or sets the list of file details that will be cleared from the file list.

    Declaration
    public List<FileInfo> FilesData { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<FileInfo>

    A System.Collections.Generic.List<> containing the details of all files that will be removed from the file list, or null if no files are available.

    Remarks

    This property contains information about all files that are scheduled for removal from the upload queue. The file details include names, sizes, types, and current status information, which can be used for logging, user confirmation, or implementing custom clear logic.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved