alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class NavigatedEventArgs

    Provides event arguments for the Navigated event when calendar navigation occurs.

    Inheritance
    object
    NavigatedEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Calendars
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class NavigatedEventArgs
    Remarks

    This class contains information about calendar navigation events, including the focused date, current view, and the original browser event that triggered the navigation. Navigation can occur when users change months, years, or decades in the calendar view.

    Examples
    <SfCalendar TValue="DateTime?">
        <CalendarEvents TValue="DateTime?" Navigated="OnNavigated"></CalendarEvents>
    </SfCalendar>
    
    @code {
        void OnNavigated(NavigatedEventArgs args)
        {
            Console.WriteLine($"Navigated to: {args.Date} in {args.View} view");
        }
    }

    Constructors

    NavigatedEventArgs()

    Declaration
    public NavigatedEventArgs()

    Properties

    Date

    Gets or sets the focused date in the calendar view after navigation.

    Declaration
    [JsonPropertyName("date")]
    public DateTime Date { get; set; }
    Property Value
    Type Description
    DateTime

    A DateTime value representing the focused date in the calendar view.

    Remarks

    This property indicates which date has focus after the navigation event occurs. The focused date determines which date is highlighted or has keyboard focus in the current view.

    Event

    Gets or sets the original browser event that triggered the navigation.

    Declaration
    [JsonPropertyName("event")]
    public object Event { get; set; }
    Property Value
    Type Description
    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 click or keyboard events, that caused the calendar navigation to occur. It provides access to the underlying event details.

    Name

    Gets or sets the name of the navigation event.

    Declaration
    [JsonPropertyName("name")]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    A string value representing the event name. The default value is null.

    Remarks

    This property specifies the name identifier for the navigation event, which can be used to identify the specific type of navigation that occurred in event handling scenarios.

    View

    Gets or sets the current view of the calendar after navigation.

    Declaration
    [JsonPropertyName("view")]
    public string View { get; set; }
    Property Value
    Type Description
    string

    A string value representing the current view name (e.g., "Month", "Year", "Decade"). The default value is null.

    Remarks

    This property indicates the calendar view that is currently displayed after the navigation event. Common values include "Month" for month view, "Year" for year view, and "Decade" for decade view.

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