This is a migrated thread and some comments may be shown as answers.

Disable Make New Folder button in RadBrowseEditor

2 Answers 111 Views
BrowseEditor
This is a migrated thread and some comments may be shown as answers.
Priyam
Top achievements
Rank 1
Priyam asked on 22 Dec 2013, 09:16 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 23 Dec 2013, 08:26 AM
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 >>
0
Stefan
Telerik team
answered on 23 Dec 2013, 08:34 AM
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 >>
Tags
BrowseEditor
Asked by
Priyam
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or