menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface ITreeGridRowModel<TValue> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface ITreeGridRowModel<TValue>

    Represents an interface that holds information about the level, expanded state, and other properties of a record in a tree structure.

    Namespace: Syncfusion.Blazor.TreeGrid
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public interface ITreeGridRowModel<TValue>
    Type Parameters
    Name
    TValue

    Properties

    Data

    Gets the data object in data source associated with this tree data item.

    Declaration
    TValue Data { get; }
    Property Value
    Type Description
    TValue

    An object of the type TValue that represents the data object associated with this tree data item.

    HasChildRecords

    Gets a value indicating whether the record has child records associated with it.

    Declaration
    bool HasChildRecords { get; }
    Property Value
    Type Description
    System.Boolean

    true if the record has child records associated with it; otherwise, false.

    IsExpanded

    Gets a value indicating whether the record is in expanded or collapsed state.

    Declaration
    bool IsExpanded { get; }
    Property Value
    Type Description
    System.Boolean

    true if the record is in expanded state; otherwise, false.

    Level

    Gets the depth of the record from the root records of the tree.

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

    The level of the record from the root record of the tree. The default value is 0.

    Remarks

    The level determines the depth of the record from the root record of the tree. The 0th level represents the root records, 1st level represents the first child record, and so on. For example, a record that is directly under the root record has a level of 1. A record that is two levels deep has a level of 2.

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