Class RowCollapsingEventArgs<T>
Defines the event arguments for collapsing action of Tree Grid.
Inheritance
System.Object
RowCollapsingEventArgs<T>
Namespace: Syncfusion.Blazor.TreeGrid
Assembly: Syncfusion.Blazor.dll
Syntax
public class RowCollapsingEventArgs<T> : Object
Type Parameters
Name | Description |
---|---|
T | A type which provides schema for the event arguments. |
Constructors
RowCollapsingEventArgs()
Declaration
public RowCollapsingEventArgs()
Properties
Cancel
Cancel the row collapsing action.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
CollapseAll
Provide an option to CollapseAll the nested parent rows of the current row.
Declaration
public bool CollapseAll { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Examples
<SfTreeGrid>
<TreeGridEvents TValue="TreeData" Collapsing="OnCollapsing"></TreeGridEvents>
</SfTreeGrid>
@code{
private async Task OnCollapsing(RowCollapsingEventArgs<TreeData> args)
{
args.CollapseAll = true;
}
}
Data
Defines the parent row data.
Declaration
public T Data { get; }
Property Value
Type | Description |
---|---|
T | The data object representing the parent row. |
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 object representing the parent row element. |