menu

Blazor

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

    Show / Hide Table of Contents

    Class ClearedEventArgs

    Provides event arguments for the clear event when a calendar component's value is cleared.

    Inheritance
    System.Object
    ClearedEventArgs
    Namespace: Syncfusion.Blazor.Calendars
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ClearedEventArgs : Object
    Remarks

    This class contains event information when a user clears the calendar value using the clear button or through programmatic clearing. It provides access to the original browser event that triggered the clear action.

    Examples
    <SfCalendar TValue="DateTime?" ShowClearButton="true">
        <CalendarEvents TValue="DateTime?" Cleared="OnCleared"></CalendarEvents>
    </SfCalendar>
    
    @code {
        void OnCleared(ClearedEventArgs args)
        {
            Console.WriteLine("Calendar value was cleared");
        }
    }

    Constructors

    ClearedEventArgs()

    Declaration
    public ClearedEventArgs()

    Properties

    Event

    Gets or sets the original browser event that triggered the clear action.

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

    An object containing the original event arguments from the browser. The default value is null.

    Remarks

    This property contains the raw browser event information, such as a click event on the clear button, that caused the calendar value to be cleared. It provides access to the underlying event details.

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