menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RecordClickEventArgs<T> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class RecordClickEventArgs<T>

    Provides information about an OnRecordClick event.

    Inheritance
    System.Object
    GridEventBaseArgs
    RecordClickEventArgs<T>
    RecordDoubleClickEventArgs<T>
    Inherited Members
    GridEventBaseArgs.PreventRender
    Namespace: Syncfusion.Blazor.Grids
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class RecordClickEventArgs<T> : GridEventBaseArgs
    Type Parameters
    Name Description
    T

    TValue of the grid component.

    Constructors

    RecordClickEventArgs()

    Declaration
    public RecordClickEventArgs()

    Properties

    Cell

    Defines the cell element.

    Declaration
    public DOM Cell { get; set; }
    Property Value
    Type
    DOM

    CellIndex

    Gets the index of the clicked cell in the grid column.

    Declaration
    public int CellIndex { get; }
    Property Value
    Type Description
    System.Int32

    An integer value that represents the index of the clicked cell in the grid column.

    CellValue

    Gets or sets the value of the clicked cell.

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

    The data value of the clicked cell. This can be of any type, such as string, bool, DateTime, or any other type that represents the cell's data.

    Remarks

    Use this property to access the underlying data value of the clicked cell. If the grid uses a template cell, this property returns the corresponding data value instead of the rendered template content.

    Column

    Gets the grid column of the clicked cell.

    Declaration
    public GridColumn Column { get; }
    Property Value
    Type Description
    GridColumn

    A GridColumn that represents the grid column of the clicked cell.

    CurrentCell

    Gets or sets the DOM object associated with the clicked grid cell.

    Declaration
    public CellDOM CurrentCell { get; }
    Property Value
    Type Description
    CellDOM

    The DOM object representing the clicked grid cell.

    Remarks

    The CellDOM properties include:

    • HasChanges: Indicates whether the cell object associated with the clicked grid cell has been modified.
    • ClassList: Contains the list of classes applied to the clicked grid cell.
    • Styles: Contains the inline styles of the clicked grid cell.
    • AttributeList: Contains the attributes of the clicked grid cell.
    • AddClass: Adds one or more class names to the class list of the clicked grid cell.
    • AddStyle: Adds one or more inline styles to the clicked grid cell.
    • SetAttribute: Sets a specific attribute for the clicked grid cell.

    ForeignKeyData

    Gets the foreign key row data associated with the column.

    Declaration
    public IDictionary<string, IEnumerable<object>> ForeignKeyData { get; }
    Property Value
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.Collections.Generic.IEnumerable<System.Object>>

    A dictionary of foreign key row data associated with the column. The keys of the dictionary represent the names of the tables, and the values represent the associated rows as a collection of objects.

    Name

    Defines the name of the event.

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

    Row

    Defines the row element.

    Declaration
    public DOM Row { get; set; }
    Property Value
    Type
    DOM

    RowData

    Gets the row data of the clicked row.

    Declaration
    public T RowData { get; }
    Property Value
    Type Description
    T

    The row data of the clicked row as an object of type T.

    RowIndex

    Gets the index of the clicked row.

    Declaration
    public int RowIndex { get; }
    Property Value
    Type Description
    System.Int32

    The index of the clicked row as an integer.

    Target

    Defines the target element.

    Declaration
    public DOM Target { get; set; }
    Property Value
    Type
    DOM
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved