menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RowExpandingEventArgs<T> - API Reference

    Show / Hide Table of Contents

    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

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

    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

    true, if all parent row can be expanded. Otherwise, false.

    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.

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