Selected Hierarchy Navigator Item Changed
Users can handle selected item changed by using the methods Command (ICommand) property or HierarchyNavigatorSelectedItemChanged event in Hierarchy Navigator control.
<syncfusion:HierarchyNavigator HierarchyNavigatorSelectedItemChanged="HierarchyNavigatorSelectedItemChanged" />
HierarchyNavigator hierarchyNavigator = new HierarchyNavigator();
<br>hierarchyNavigator.HierarchyNavigatorSelectedItemChanged += new HierarchyNavigatorSelectedItemChangedEventHandler(HierarchyNavigatorSelectedItemChanged);
private void HierarchyNavigatorSelectedItemChanged(object sender, HierarchyNavigatorSelectedItemChangedEventArgs e)
{
<br>
//Occurs when Selected Item Changed
}
Passing the argument “HierarchyNavigator item” in a method called SelectNavigationItem can change the selected item.
HierarchyNavigator hierarchyNavigator = new HierarchyNavigator();
hierarchyNavigator.SelectNavigationItem(hierarchyitem);