menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RowCollapsingEventArgs<T> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    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

    true, if the row collapsing action can be canceled. Otherwise, false.

    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

    true, to collapse all the nested parent rows of the current row; otherwise, false.

    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.

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