menu

Blazor

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

    Show / Hide Table of Contents

    Class FileListRenderingEventArgs

    Provides information about the OnFileListRender event callback.

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

    This event is triggered before rendering each file item in the file list. It provides access to the DOM element, file information, and rendering context, allowing developers to customize the appearance and behavior of individual file items in the uploader's file list.

    Constructors

    FileListRenderingEventArgs()

    Declaration
    public FileListRenderingEventArgs()

    Properties

    Element

    Gets or sets the DOM element representing the current file item being rendered.

    Declaration
    public DOM Element { get; set; }
    Property Value
    Type Description
    DOM

    A DOM object representing the file item element, or null if no element is available.

    Remarks

    This property provides direct access to the DOM element that represents the file item in the file list. It can be used to apply custom styling, add event listeners, or modify the element's attributes and content during the rendering process.

    FileInfo

    Gets or sets the details of the file currently being rendered in the file list.

    Declaration
    public FileInfo FileInfo { get; set; }
    Property Value
    Type Description
    FileInfo

    A FileInfo object containing the file details, or null if no file information is available.

    Remarks

    This property contains comprehensive information about the file being rendered, including its name, size, type, status, and other metadata. This information can be used to customize the file item's appearance based on file properties or to implement custom rendering logic.

    Index

    Gets or sets the zero-based index of the file item in the file list.

    Declaration
    public double Index { get; set; }
    Property Value
    Type Description
    System.Double

    A double value representing the index position of the file item in the file list.

    Remarks

    This property indicates the position of the current file item within the complete file list. It can be used for implementing alternating row styles, numbering file items, or applying position-specific customizations to the file list display.

    IsPreload

    Gets or sets a value indicating whether the file is preloaded in the uploader component.

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

    true if the file is preloaded; otherwise, false.

    Remarks

    Preloaded files are those that are configured to display in the file list when the uploader component is initialized, typically representing files that have already been uploaded to the server. This property helps distinguish between newly selected files and existing uploaded files.

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