This is a migrated thread and some comments may be shown as answers.

How to reset Breadcrumb

7 Answers 228 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Nadine
Top achievements
Rank 1
Nadine asked on 13 Mar 2009, 02:09 PM
Hi,

is it possible to reset the text of a breadcrumb (databind on treeview)?

.ResetText does not work...

A workaround could be to perform a click on the treeview programatically to get an update of the breadcrumb, but this doesn't seem to work either. I tried radtreeview.RootElement.PerformClick() without success.

A Clear-Method for the breadcrumb should be helpful for the beginning, but I didn't found one.

Best regards

Nadine

7 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 16 Mar 2009, 01:15 PM
Hello Nadine,

Thank you for writing and pointing this issue out. The RefreshText method does not work because it is not implemented in the RadBreadCrumb. I have fixed the bread crumb and now it can be refreshed by calling UpdateBreadCrumb(RadTreeNode n). The argument should, in your case, be the SelectedNode of the RadTreeView. This fix will be included in the Q1 2009 SP1, which will be available in about a month.
Please write back if you have other questions.

Sincerely yours,
Victor
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
George
Top achievements
Rank 1
answered on 11 May 2009, 02:44 AM
I ended up hiding and showing the breadcrumb in order to give the appearance of "clearing" it.   So, there is no way to have the breadcrumb be cleared out if you clear out the associated tree view?
0
Victor
Telerik team
answered on 12 May 2009, 02:55 PM
Hi George,

Thank you for writing.

Currently there is no way to detach the bread crumb from a tree view. This is on our to do list and will be implemented in the future.

Please write again if you have other questions.

Sincerely yours,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Steve
Top achievements
Rank 1
answered on 09 Dec 2016, 08:02 PM
Has this been implemented?
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 12 Dec 2016, 07:55 AM
Hello Steve,

Thank you for writing.  

In order to clear RadBreadCrumb it is necessary to set the DefaultTreeView property to null:
this.radBreadCrumb1.DefaultTreeView = null;

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Telerik by Progress
Telerik UI for WinForms is ready for Visual Studio 2017 RC! Learn more.
0
Steve
Top achievements
Rank 1
answered on 15 Dec 2016, 11:55 PM

This worked but when I populate my treeview again and set the breadcrumb property, it shows the previously selected treeview node even though nothing is selected.

I had tried clearing the treeview selected nodes but got an error. I later found out I needed to unbind the breadcrumb first. In case anyone else is having the same issue, I finally figured it out using the code below. The order of statements is important.

// clear/unbind controls before getting data
BreadCrumb.DefaultTreeView = null;
TreeView.ClearSelection();
TreeView.Nodes.Refresh();
// get the data and rebind controls
//var myList = new List<myData>() ...
TreeView.DataSource = myList;
BreadCrumb.DefaultTreeView = TreeView;

 

 

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 16 Dec 2016, 11:52 AM
Hello Steve, 

Thank you for writing back. 

I have logged it in our feedback portal and I have added a vote for it 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.

I hope this information helps. If you have any additional questions, please let me know. Regards,
Dess
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Treeview
Asked by
Nadine
Top achievements
Rank 1
Answers by
Victor
Telerik team
George
Top achievements
Rank 1
Steve
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or