Explorer Control - Clear Navigation History

1 Answer 59 Views
FileDialogs
Philipp
Top achievements
Rank 1
Philipp asked on 23 Nov 2023, 12:50 PM

Hello,

is it possible to manipulate or clear the navigation history of the explorer control?

Best regards,

Philipp

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 27 Nov 2023, 09:30 AM

Hello Philipp,

To clear the history, you can get the HistoryNavigationPaneControl and clear its DirectoryHistory collection.

 private HistoryNavigationPaneControl historyNavigationPane;

 private void ExplorerControl_Loaded(object sender, RoutedEventArgs e)
 {
     this.historyNavigationPane = this.explorerControl.FindChildByType<HistoryNavigationPaneControl>();
 }

 public void ClearDirectoryHistory()
 {
     this.historyNavigationPane.DirectoryHistory.Clear();
 }

I hope that helps.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Philipp
Top achievements
Rank 1
commented on 27 Nov 2023, 10:44 AM

Thank you, Martin! Thatwas exactly what I was looking for.

Best regards,

Philipp

Tags
FileDialogs
Asked by
Philipp
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or