menu

Blazor

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

    Show / Hide Table of Contents

    Class CellDetails

    Represents the details and state of a calendar cell, including unique identifier, style classes, and associated data.

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

    The CellDetails class is used to provide detailed information about each cell in the calendar grid, including references to the cell element, mouse event, and the current date represented by the cell.

    Examples

    Accessing the ID and current date of a cell in the calendar:

    foreach (var cell in calendar.CellListData)
    {
        var cellId = cell.CellID;
        var date = cell.CurrentDate;
    }

    Constructors

    CellDetails()

    Declaration
    public CellDetails()

    Properties

    CellID

    Gets or sets the unique identifier for the calendar cell.

    Declaration
    public string CellID { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the unique ID of the cell.

    Remarks

    This ID can be used for referencing and updating the cell's state in the UI.

    ClassList

    Gets or sets the CSS class list applied to the cell element.

    Declaration
    public string ClassList { get; set; }
    Property Value
    Type Description
    System.String

    A string of CSS class names applied to the cell.

    Remarks

    Use this property to dynamically change the appearance of the cell (for highlighting, disabling, etc.).

    CurrentDate

    Gets or sets the System.DateTime value for the date represented by this cell.

    Declaration
    public DateTime CurrentDate { get; set; }
    Property Value
    Type Description
    System.DateTime

    A DateTime indicating the specific calendar date associated with this cell.

    Remarks

    Use this property to access the actual date information rendered in the cell for processing selections, highlights, etc.

    Element

    Gets or sets the element reference for the calendar cell.

    Declaration
    public Nullable<ElementReference> Element { get; set; }
    Property Value
    Type Description
    System.Nullable<Microsoft.AspNetCore.Components.ElementReference>

    An Microsoft.AspNetCore.Components.ElementReference for direct DOM manipulation or focus control.

    Remarks

    This property is useful for advanced scenarios requiring JS interop or programmatic focus control.

    EventArgs

    Gets or sets the mouse event arguments related to user interaction with the cell.

    Declaration
    public MouseEventArgs EventArgs { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.Web.MouseEventArgs

    An instance of Microsoft.AspNetCore.Components.Web.MouseEventArgs containing mouse event data.

    Remarks

    This property facilitates event handling for click, hover, and other pointer actions on the cell.

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