Class TreeViewEvents<TValue>
The TreeView allows us to control the component by using events
Inheritance
System.Object
Syncfusion.Blazor.SfBaseComponent
TreeViewEvents<TValue>
Assembly: Syncfusion.Blazor.dll
Syntax
public class TreeViewEvents<TValue> : SfBaseComponent
Type Parameters
Constructors
TreeViewEvents()
Declaration
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
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
NodeChecking
Triggers before the TreeView node is to be checked/unchecked.
Declaration
public EventCallback<NodeCheckEventArgs> NodeChecking { get; set; }
Property Value
NodeClicked
Triggers when the TreeView node is clicked successfully.
Declaration
public EventCallback<NodeClickEventArgs> NodeClicked { get; set; }
Property Value
NodeCollapsed
Triggers when the TreeView node collapses successfully.
Declaration
public EventCallback<NodeExpandEventArgs> NodeCollapsed { get; set; }
Property Value
NodeCollapsing
Triggers before the TreeView node collapses.
Declaration
public EventCallback<NodeExpandEventArgs> NodeCollapsing { get; set; }
Property Value
NodeDropped
Triggers when the TreeView node is dropped on target element successfully.
Declaration
public EventCallback<DragAndDropEventArgs> NodeDropped { get; set; }
Property Value
NodeEdited
Triggers when the TreeView node is renamed successfully.
Declaration
public EventCallback<NodeEditEventArgs> NodeEdited { get; set; }
Property Value
NodeEditing
Triggers before the TreeView node is renamed.
Declaration
public EventCallback<NodeEditEventArgs> NodeEditing { get; set; }
Property Value
NodeExpanded
Triggers when the TreeView node expands successfully.
Declaration
public EventCallback<NodeExpandEventArgs> NodeExpanded { get; set; }
Property Value
NodeExpanding
Triggers before the TreeView node is to be expanded.
Declaration
public EventCallback<NodeExpandEventArgs> NodeExpanding { get; set; }
Property Value
NodeSelected
Triggers when the TreeView node is selected/unselected successfully.
Declaration
public EventCallback<NodeSelectEventArgs> NodeSelected { get; set; }
Property Value
NodeSelecting
Triggers before the TreeView node is selected/unselected.
Declaration
public EventCallback<NodeSelectEventArgs> NodeSelecting { get; set; }
Property Value
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
OnNodeDragged
Triggers when the TreeView node drag (move) is stopped.
Declaration
public EventCallback<DragAndDropEventArgs> OnNodeDragged { get; set; }
Property Value
OnNodeDragStart
Triggers when the TreeView node drag (move) starts.
Declaration
public EventCallback<DragAndDropEventArgs> OnNodeDragStart { get; set; }
Property Value
OnNodeDragStop
Triggers when the TreeView node dragging (move) stops.
Declaration
public EventCallback<DragAndDropEventArgs> OnNodeDragStop { get; set; }
Property Value
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
Methods
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
Syncfusion.Blazor.SfBaseComponent.OnInitializedAsync()