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

Custom Event Handler for document manager rename command

1 Answer 54 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 27 Jun 2013, 01:46 PM
Is it possible to create a custom event handler to run before the default handler for the rename command?  I would like to place some logic in front of the rename.

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 01 Jul 2013, 03:35 PM
Hi Josh,

RadEditor dialogs utilize RadFileExplorer to provide file browsing functionality and you can assign custom handles to it by modifying the editor's built-in dialog FileBrowser.ascx.

You can find detailed information on how to modify built-in dialogs in the following live demo:
http://demos.telerik.com/aspnet-ajax/editor/examples/externaldialogspath/defaultcs.aspx

Another approach to achieve the required result is to subclass the dialog's content provider and override its MoveFile()/MoveDirectory() methods to implement the custom logic to the rename functionality. You can find example on how to implement custom provider to the dialog in the following help article:
http://www.telerik.com/help/aspnet-ajax/editor-custom-filebrowsercontentprovider.html

Regards,
Dobromir
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Editor
Asked by
Josh
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or