Search code examples
c#asp.nettelerikradeditor

Hide new folder option in telerik editor file uploading


I am using telerik rad editor in my projct. To add image I am using Image manager,while click on Image manager it opens the pop up where I can upload multiple images to the specified folder. It also showing me image editing option in same popup. My requirement is I don't want to show default image folder to user and don't want any image editing. I also want to hide add new folder option. please help me. If you have any sample code. Please share with me. Thanks in advance.


Solution

  • You can customize the dialogs so that the elements you do not want visible to the user are not, e.g. by setting their display CSS property to none or by editing the markup. See this demo for an example: http://demos.telerik.com/aspnet-ajax/editor/examples/externaldialogspath/defaultcs.aspx. Note that just removing controls is likely to cause an error so you should test your custom dialog carefully.

    Regarding the folder you show - in order to upload images you need to access the folder, so the files will be shown to the user. You can try implementing a custom provider to hide certain files, see this demo on the matter: http://demos.telerik.com/aspnet-ajax/editor/examples/dbfilebrowsercontentprovider/defaultcs.aspx.