Is there a way to remove the ability to rename and delete of the folders? I only want to give the users the ability to rename a delete files but the folders to be set and not allowed to modify.
1 Answer, 1 is accepted
0
Vessy
Telerik team
answered on 17 Apr 2014, 01:45 PM
Hi Frank,
You can disable the delete/rename of folders by canceling the ClientDelete and ClientMove events in case the current item is a folder. For example, you can use a similar implementation:
alert("You do not have permissions to delete folders.");
}
}
function OnClientMove(oExplorer, args) {
var isRename = args.get_newPath().search("/") < 0;
var isFolder = args.get_item().isDirectory();
if (isRename && isFolder) {
args.set_cancel(true);
alert("You do not have permissions to rename folders.");
}
}
</script>
More detailed information regarding the FileExplorer's Client-side events can be found here: Client-side events. I hope this information will be helpful for you.
Regards,
Vessy
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.