How to reset Breadcrumb

8 posts, 0 answers
  1. Nadine
    Nadine avatar
    20 posts
    Member since:
    Jan 2009

    Posted 13 Mar 2009 Link to this post

    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
  2. Victor
    Admin
    Victor avatar
    1358 posts

    Posted 16 Mar 2009 Link to this post

    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.
  3. George
    George avatar
    5 posts
    Member since:
    Apr 2008

    Posted 10 May 2009 Link to this post

    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?
  4. Victor
    Admin
    Victor avatar
    1358 posts

    Posted 12 May 2009 Link to this post

    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.
  5. Steve
    Steve avatar
    3 posts
    Member since:
    Sep 2012

    Posted 09 Dec 2016 Link to this post

    Has this been implemented?
  6. Dess
    Admin
    Dess avatar
    1736 posts

    Posted 12 Dec 2016 Link to this post

    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.
  7. Steve
    Steve avatar
    3 posts
    Member since:
    Sep 2012

    Posted 15 Dec 2016 in reply to Dess Link to this post

    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;

     

     

  8. Dess
    Admin
    Dess avatar
    1736 posts

    Posted 16 Dec 2016 Link to this post

    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.
Back to Top