Class RowExpandingEventArgs<T>
Defines the event arguments for expanding action of Tree Grid.
Inheritance
System.Object
RowExpandingEventArgs<T>
Namespace: Syncfusion.Blazor.TreeGrid
Assembly: Syncfusion.Blazor.dll
Syntax
public class RowExpandingEventArgs<T> : Object
Type Parameters
Name | Description |
---|---|
T | A type which provides schema for the event arguments. |
Constructors
RowExpandingEventArgs()
Declaration
public RowExpandingEventArgs()
Properties
Cancel
Cancel the row expanding action.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Data
Defines the parent row data.
Declaration
public T Data { get; }
Property Value
Type | Description |
---|---|
T | The data object representing the parent row. |
ExpandAll
Provide an option to ExpandAll the nested parent rows of the current row
Declaration
public bool ExpandAll { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Examples
<SfTreeGrid>
<TreeGridEvents TValue="TreeData" Expanding="OnExpanding" ></TreeGridEvents>
</SfTreeGrid>
@code{
private async Task OnExpanding(RowExpandingEventArgs<TreeData> args)
{
args.ExpandAll = true;
}
}
Items
Defines the parent row data.
Declaration
public List<T> Items { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T> | The list of data object representing the parent rows/currentview records. |
Row
Defines the parent row element.
Declaration
public DOM Row { get; set; }
Property Value
Type | Description |
---|---|
DOM | A DOM element that specifies the parent row element. |