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 |
HasChildRecords
Gets a value indicating whether the record has child records associated with it.
Declaration
bool HasChildRecords { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsExpanded
Gets a value indicating whether the record is in expanded or collapsed state.
Declaration
bool IsExpanded { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
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.