menu

Blazor

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

    Show / Hide Table of Contents

    Class RemovingEventArgs

    Provides information about the OnRemove event callback.

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

    This event is triggered when files are being removed from the uploader component. It provides comprehensive information about the removal operation, including the files being removed, request details, and cancellation options. This event allows developers to implement custom removal logic, validate removal requests, or cancel removal operations based on business rules.

    Constructors

    RemovingEventArgs()

    Declaration
    public RemovingEventArgs()

    Properties

    Cancel

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

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

    true to cancel the file removal operation; otherwise, false.

    Remarks

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

    CurrentRequest

    Gets or sets the XMLHttpRequest instance associated with the file removal operation.

    Declaration
    public object CurrentRequest { get; set; }
    Property Value
    Type Description
    System.Object

    An object containing XMLHttpRequest details, or null if no request is associated.

    Remarks

    This property provides access to the underlying HTTP request object that will be used for the file removal operation. It allows for customization of request headers, authentication, and other HTTP-specific settings before the removal request is sent to the server.

    CustomFormData

    Gets or sets additional custom data in key-value pair format to be submitted with the removal request.

    Declaration
    public object CustomFormData { get; set; }
    Property Value
    Type Description
    System.Object

    An object containing key-value pairs of additional data, or null if no custom data is provided.

    Remarks

    This property allows developers to include additional parameters or metadata with the file removal request. Common uses include authentication tokens, user identifiers, or other application-specific data required by the server-side removal handler.

    Event

    Gets or sets the original event arguments associated with the removal operation.

    Declaration
    public object Event { get; set; }
    Property Value
    Type Description
    System.Object

    An object containing the original event arguments for the current event, or null if no event arguments are available.

    Remarks

    This property provides access to the underlying event arguments that triggered the removal operation. Note: This property is obsolete and should no longer be used in new implementations. Use other properties of this class for accessing removal information.

    FilesData

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

    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 files to be removed, or null if no files are specified.

    Remarks

    This property contains information about all files that are scheduled for removal, including file names, sizes, and other metadata. This information can be used for validation, logging, or displaying confirmation messages to users before removal.

    PostRawFile

    Gets or sets a value indicating whether the selected raw file data should be sent to the server during removal.

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

    true to send the raw file data to the server; otherwise, false to send only the file name.

    Remarks

    When set to true, the complete file information including binary data is sent to the server. When set to false, only the file metadata (such as filename) is sent. Setting this to false can improve performance when only file identification is needed for removal operations.

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