Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeGridTemplates - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TreeGridTemplates

    Configures Tree Grid templates.

    Inheritance
    System.Object
    SfBaseComponent
    SfDataBoundComponent
    TreeGridTemplates
    Inherited Members
    SfDataBoundComponent.SetDataManager<T>(Object)
    SfDataBoundComponent.OnParametersSetAsync()
    SfDataBoundComponent.OnAfterRenderAsync(Boolean)
    SfDataBoundComponent.DataManager
    SfDataBoundComponent.MainParent
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(Boolean)
    SfBaseComponent.OnObservableChange(String, Object, Boolean, NotifyCollectionChangedEventArgs)
    Namespace: Syncfusion.Blazor.TreeGrid
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class TreeGridTemplates : SfDataBoundComponent

    Constructors

    TreeGridTemplates()

    Declaration
    public TreeGridTemplates()

    Properties

    DetailTemplate

    Gets or sets the template to customize detail row element.

    Declaration
    public RenderFragment<object> DetailTemplate { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment<System.Object>
    Remarks

    Use the DetailTemplate to render hierarchy treegrid. It supports N level of nested grids. The parameters passed to the templates can be accessed using the implicit parameter named context. The context is a type of TValue.

    RowTemplate

    Gets or sets the row template to customize row elements.

    Declaration
    public RenderFragment<object> RowTemplate { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment<System.Object>
    Remarks

    The RowTemplate content must be TD elements and the number of TD elements must match the number of datagrid columns. The parameters passed to the templates can be accessed using the implicit parameter named context. The context is a type of TValue.

    ToolbarTemplate

    Render custom toolbar using the ToolbarTemplate property. It replaces the in-built toolbar and click actions must be handled in the custom toolbar itself.

    Declaration
    public RenderFragment<object> ToolbarTemplate { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment<System.Object>
    Remarks

    The parameters passed to the templates can be accessed using implicit parameter named context.

    Methods

    OnInitializedAsync()

    Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree. Override this method if you will perform an asynchronous operation and want the component to refresh when that operation is completed.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing any asynchronous operation.

    Overrides
    SfDataBoundComponent.OnInitializedAsync()
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved