menu

Blazor

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

    Show / Hide Table of Contents

    Class DateRangePickerPresets

    Inheritance
    System.Object
    DateRangePickerPresets
    Implements
    System.IDisposable
    Namespace: Syncfusion.Blazor.Calendars
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DateRangePickerPresets : OwningComponentBase, IDisposable

    Constructors

    DateRangePickerPresets()

    Declaration
    public DateRangePickerPresets()

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    ComponentDispose(Boolean)

    Disposes the component resources.

    Declaration
    protected void ComponentDispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    A bool indicating whether the component is being disposed.

    Remarks

    This method is called to release any resources used by the component, such as unhooking from events or clearing references.

    OnInitializedAsync()

    Handles the component initialization.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task that represents the asynchronous operation.

    Remarks

    This method is called when the component is first initialized. It updates the parent SfDateRangePicker<TValue> with the defined presets.

    Implements

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