Remove Navigation and new folder button

2 posts, 0 answers
  1. Frank
    Frank avatar
    105 posts
    Member since:
    Mar 2012

    Posted 21 Oct 2019 Link to this post

    How do you remove the arrows on the right had side and the New folder button from the Explorer control.  I want to open the form to a specific folder and then only allow upload, download, to that folder.  I have been able to remove everything else but cannot find these settings.

    This is 2019 R2

     

     

  2. Dimitar
    Admin
    Dimitar avatar
    2931 posts

    Posted 22 Oct 2019 Link to this post

    Hello Frank,

    Here is how to hide the new button and the navigation control:

    private void radButton1_Click(object sender, EventArgs e)
    {
    
        RadOpenFileDialog fd = new RadOpenFileDialog();
        var explorerControl = fd.OpenFileDialogForm.ExplorerControl;
        explorerControl.Controls[0].Controls[1].Controls[2].Visible = false;// navigation control
        explorerControl.Controls[0].Controls[2].Controls[0].Visible = false;//new folder
    
        fd.ShowHiddenFiles = true;
        fd.ShowDialog();
    }
    

    I hope this helps. Should you have any other questions do not hesitate to ask.

    Regards,
    Dimitar
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top