Disable Make New Folder button in RadBrowseEditor

3 posts, 1 answers
  1. Priyam
    Priyam avatar
    6 posts
    Member since:
    Dec 2012

    Posted 22 Dec 2013 Link to this post

    How do I disable "Make New Folder" button in RadBrowseEditor dialog? Also, I want to re-size the dialog on user preference, How do I achieve this?
  2. Answer
    Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 23 Dec 2013 Link to this post

    Hi Priyam,

    Thank you for writing.

    RadBrowseEditor uses the standard .NET dialogs and the current dialog can be accessed via the Dialog property of the control. I assume that you are using FolderBrowseDialog and if so, you can use its ShowNewFolderButton property to disable the new folder button:
    radBrowseEditor1.DialogType = BrowseEditorDialogType.FolderBrowseDialog;
    FolderBrowserDialog folderDialog = (FolderBrowserDialog)radBrowseEditor1.Dialog;
    folderDialog.ShowNewFolderButton = false;

    More information about this dialog type can be found here: http://msdn.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog(v=vs.110).aspx.

    I hope this helps.

    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 23 Dec 2013 Link to this post

    A quick follow up. In regards to the resizing question, the dialog provides a grip so the user can resize it. Unfortunately, there is no API for programmatically resizing the dialog. I found a suggestion here which you might want to try if it would work: http://www.vbforums.com/showthread.php?559882-Resize-Folder-Browser-Dialog&p=3459822#post3459822.

    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top