With the Rad Editor for ASP.NET Ajax, the behavior when attempting to delete a root path is different than with the older Rad Editor version we are upgrading from.
In the old version, attempting to delete the root folder displays the message "A root folder may not be deleted".
In the latest version, a confirmation dialog is displayed, just like when deleting any other folder. When OK is clicked however, the folder is simply not deleted, but no error message is displayed.
I realize I can modify the permission on the root folder to disable the delete button, but this seems like it should be built in.
Thanks. Josh
The following a sample application that will reproduce the issue (note you should have a folder in your web root called images_root).
In the old version, attempting to delete the root folder displays the message "A root folder may not be deleted".
In the latest version, a confirmation dialog is displayed, just like when deleting any other folder. When OK is clicked however, the folder is simply not deleted, but no error message is displayed.
I realize I can modify the permission on the root folder to disable the delete button, but this seems like it should be built in.
Thanks. Josh
The following a sample application that will reproduce the issue (note you should have a folder in your web root called images_root).
<%@ Page Language="C#" AutoEventWireup="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
<
asp:ScriptManager
ID
=
"ScriptManager1"
runat
=
"server"
/>
<
telerik:RadEditor
ID
=
"RadEditor1"
runat
=
"server"
>
<
ImageManager
ViewPaths
=
"~/images_root"
UploadPaths
=
"~/images_root"
DeletePaths
=
"~/images_root"
/>
</
telerik:RadEditor
>
</
div
>
</
form
>
</
body
>
</
html
>