Completed
Last Updated: 10 Jun 2020 13:40 by ADMIN
Release R2 2020 SP1
Frank
Created on: 19 Feb 2020 07:03
Category: UI for WinForms
Type: Feature Request
0
File Dialogs: mapped drives should display the drive name

Default:

Desired:

Workaround: handle the ExplorerControl.MainNavigationTreeView.NodeFormatting event and replace the node's text with the FileBrowserTreeNode.Label: 

    Sub New()

        InitializeComponent() 

        AddHandler Me.RadOpenFileDialog1.OpenFileDialogForm.ExplorerControl.MainNavigationTreeView.NodeFormatting, AddressOf MainNavigationTreeView_NodeFormatting
        Me.RadOpenFileDialog1.ShowDialog() 
    End Sub

    Private Sub MainNavigationTreeView_NodeFormatting(sender As Object, e As Telerik.WinControls.UI.TreeNodeFormattingEventArgs)
        If e.Node.Text = "K:" Then
            Dim f As FileBrowserTreeNode = TryCast(e.Node, FileBrowserTreeNode)
            If f IsNot Nothing Then
                e.Node.Text = f.DataItem.Label
            End If 
        End If 
    End Sub
0 comments