Skip to content

outsidergiant/treeview-blazor-how-to-implement-the-Breadcrumb-control-based-on-a-selected-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Files to look at:

TreeView for Blazor - How to implement the Breadcrumb control based on a selected node

This example uses the Bootstrap Breadcrumb component that is bound to DxTreeView via the SelectionChanged event handler. TreeView's selected node is changed when a Breadcrumb item is selected:

<a @onclick="@(() => SelectNode(currentNodeInfo.Text))" href="#">
    @currentNodeInfo.Text
</a>

...

void SelectNode(string text) {
    TreeView.SelectNode((n) => n.Text == text);
}