Hello,
I've got a treeview where one of the main nodes is hidden (visible=false), but this item is still shown in the linked breadcrumb.
Is there a way to hide this node in the breadcrumb?
Best regards
Patrick Vossen
Hello, Patrick,
Indeed, the hidden nodes from RadTreeView are visible in RadBreadCrumb.
I have logged it in our feedback portal by creating a public thread on your behalf. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.
I have also updated your Telerik points.
Currently, the possible solution that I can suggest is to hide the drop down item that is associated with the hidden node:
public RadForm1()
{
InitializeComponent();
this.radBreadCrumb1.DefaultTreeView = this.radTreeView1;
this.radBreadCrumb1.SplitButtonCreated+=radBreadCrumb1_SplitButtonCreated;
}
private void radBreadCrumb1_SplitButtonCreated(object sender, Telerik.WinControls.UI.BreadCrumb.SplitButtonCreatedEventArgs e)
{
foreach (RadTreeNode n in e.AssociatedTreeNode.Nodes)
{
if (n.Visible==false)
{
e.SplitButtonElement.Items[n.Index].Visibility = ElementVisibility.Collapsed;
}
}
}
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik