Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeViewEvents<TValue> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TreeViewEvents<TValue>

    The TreeView allows us to control the component by using events

    Inheritance
    System.Object
    Syncfusion.Blazor.SfBaseComponent
    TreeViewEvents<TValue>
    Namespace: Syncfusion.Blazor.Navigations
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class TreeViewEvents<TValue> : SfBaseComponent
    Type Parameters
    Name Description
    TValue

    Constructors

    TreeViewEvents()

    Declaration
    public TreeViewEvents()

    Properties

    Created

    Triggers when the TreeView control is created successfully.

    Declaration
    public EventCallback<ActionEventArgs> Created { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<ActionEventArgs>

    DataBound

    Triggers when data source is populated in the TreeView.

    Declaration
    public EventCallback<DataBoundEventArgs<TValue>> DataBound { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<DataBoundEventArgs<TValue>>

    DataSourceChanged

    Triggers when data source is changed in the TreeView. The data source will be changed after performing some operation like drag and drop, node editing, adding and removing node.

    Declaration
    public EventCallback<DataSourceChangedEventArgs<TValue>> DataSourceChanged { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<DataSourceChangedEventArgs<TValue>>

    Destroyed

    Triggers when the TreeView control is destroyed successfully.

    Declaration
    public EventCallback<ActionEventArgs> Destroyed { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<ActionEventArgs>

    NodeChecked

    Triggers when the TreeView node is checked/unchecked successfully.

    Declaration
    public EventCallback<NodeCheckEventArgs> NodeChecked { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<NodeCheckEventArgs>

    NodeChecking

    Triggers before the TreeView node is to be checked/unchecked.

    Declaration
    public EventCallback<NodeCheckEventArgs> NodeChecking { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<NodeCheckEventArgs>

    NodeClicked

    Triggers when the TreeView node is clicked successfully.

    Declaration
    public EventCallback<NodeClickEventArgs> NodeClicked { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<NodeClickEventArgs>

    NodeCollapsed

    Triggers when the TreeView node collapses successfully.

    Declaration
    public EventCallback<NodeExpandEventArgs> NodeCollapsed { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<NodeExpandEventArgs>

    NodeCollapsing

    Triggers before the TreeView node collapses.

    Declaration
    public EventCallback<NodeExpandEventArgs> NodeCollapsing { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<NodeExpandEventArgs>

    NodeDropped

    Triggers when the TreeView node is dropped on target element successfully.

    Declaration
    public EventCallback<DragAndDropEventArgs> NodeDropped { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<DragAndDropEventArgs>

    NodeEdited

    Triggers when the TreeView node is renamed successfully.

    Declaration
    public EventCallback<NodeEditEventArgs> NodeEdited { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<NodeEditEventArgs>

    NodeEditing

    Triggers before the TreeView node is renamed.

    Declaration
    public EventCallback<NodeEditEventArgs> NodeEditing { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<NodeEditEventArgs>

    NodeExpanded

    Triggers when the TreeView node expands successfully.

    Declaration
    public EventCallback<NodeExpandEventArgs> NodeExpanded { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<NodeExpandEventArgs>

    NodeExpanding

    Triggers before the TreeView node is to be expanded.

    Declaration
    public EventCallback<NodeExpandEventArgs> NodeExpanding { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<NodeExpandEventArgs>

    NodeSelected

    Triggers when the TreeView node is selected/unselected successfully.

    Declaration
    public EventCallback<NodeSelectEventArgs> NodeSelected { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<NodeSelectEventArgs>

    NodeSelecting

    Triggers before the TreeView node is selected/unselected.

    Declaration
    public EventCallback<NodeSelectEventArgs> NodeSelecting { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<NodeSelectEventArgs>

    OnActionFailure

    Triggers when any TreeView action failed to fetch the desired results.

    Declaration
    public EventCallback<FailureEventArgs> OnActionFailure { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<FailureEventArgs>

    OnKeyPress

    Triggers when key press is successful. It helps to customize the operations at key press.

    Declaration
    public EventCallback<NodeKeyPressEventArgs> OnKeyPress { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<NodeKeyPressEventArgs>

    OnNodeDragged

    Triggers when the TreeView node drag (move) is stopped.

    Declaration
    public EventCallback<DragAndDropEventArgs> OnNodeDragged { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<DragAndDropEventArgs>

    OnNodeDragStart

    Triggers when the TreeView node drag (move) starts.

    Declaration
    public EventCallback<DragAndDropEventArgs> OnNodeDragStart { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<DragAndDropEventArgs>

    OnNodeDragStop

    Triggers when the TreeView node dragging (move) stops.

    Declaration
    public EventCallback<DragAndDropEventArgs> OnNodeDragStop { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<DragAndDropEventArgs>

    OnNodeRender

    Triggers before the TreeView node is appended to the TreeView element. It helps to customize specific nodes.

    Declaration
    public EventCallback<NodeRenderEventArgs<TValue>> OnNodeRender { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<NodeRenderEventArgs<TValue>>

    Methods

    OnInitializedAsync()

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task
    Overrides
    Syncfusion.Blazor.SfBaseComponent.OnInitializedAsync()
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved