alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class CellDOM

    Handles cell and row customization.

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

    An instance of this class is passed in QueryCellInfo and RowDataBound events as argument through which the conditional class and styles can be added to cell/row.

    Constructors

    CellDOM(List<string>, List<string>, IDictionary<string, object>)

    Declaration
    public CellDOM(List<string> classList = null, List<string> styleList = null, IDictionary<string, object> attributeList = null)
    Parameters
    Type Name Description
    List<string> classList
    List<string> styleList
    IDictionary<string, object> attributeList

    Methods

    AddClass(string[])

    Add multiple class names to the specific cell.

    Declaration
    public void AddClass(string[] classList)
    Parameters
    Type Name Description
    string[] classList

    List of class names.

    AddItem(List<string>, string[])

    Add array of values to the list.

    Declaration
    protected void AddItem(List<string> AddTo, string[] values)
    Parameters
    Type Name Description
    List<string> AddTo

    Source list to be added.

    string[] values

    Array values to be added to the list.

    AddStyle(string[])

    Add multiple style rules to the specific cell.

    Declaration
    public void AddStyle(string[] styles)
    Parameters
    Type Name Description
    string[] styles

    List of style rules.

    SetAttribute(IDictionary<string, object>)

    Add attributes to the given DOM element.

    Declaration
    public void SetAttribute(IDictionary<string, object> attributes)
    Parameters
    Type Name Description
    IDictionary<string, object> attributes

    List of key and values to be added.

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