ExplorerControl - disable files/folder rename on selection?

1 Answer 107 Views
FileDialogs
Ed
Top achievements
Rank 1
Ed asked on 15 Aug 2021, 07:37 PM | edited on 15 Aug 2021, 07:40 PM

Hello!  I am using the ExplorerControl for an application where I want to limit the user to selecting files and folders - they should otherwise be completely unable to modify the filesystem.  Is there a way to disable the feature where the user selects a file or folder, then selects it again, and the file entry changes to let them edit the name of the selected item?



This occurs with both a mouse and touchscreen selection; I'd like to disable both of these cases.   To clarify, this is distinct from the "rename" feature of the Windows context menu, which normally appears on mouse right-click (and can be disabled by handling that event).

Thanks for your help!

--Ed

1 Answer, 1 is accepted

Sort by
1
Dess | Tech Support Engineer, Principal
Telerik team
answered on 16 Aug 2021, 04:34 AM

Hello, Ed,

As of R1 2020 SP1 all file dialogs and the ExplorerControl offer the EditingOptions property which I believe would be suitable for your scenario. It determines how the files and folders in the ExplorerControl can be edited. Setting EditingOptions will determine which edit operations can be performed via keyboard keys and "NewFolder" button:

https://docs.telerik.com/devtools/winforms/controls/file-dialogs/features/editing-options 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
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.

Ed
Top achievements
Rank 1
commented on 20 Aug 2021, 04:34 PM

Are the EditingOptions or their equivalent available in UI for WPF?  I think I posted this in the wrong forum, and I don't see that property in the Telerik.Windows.Controls.FileDialogs.ExplorerControl using the 2021.2.615.45 version of the DLLs.
Dess | Tech Support Engineer, Principal
Telerik team
commented on 23 Aug 2021, 04:28 AM

Hi, Ed,

I would like that this forum is related to the Telerik UI for WinForms suite. However, it seems that you have inquiries to the WPF product. That is why feel free to post you question in the relevant forum:

https://www.telerik.com/forums/wpf 

Thus, the relevant community would gladly assist you. Thank you for your understanding.

Tags
FileDialogs
Asked by
Ed
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or