Completed
Last Updated: 23 Sep 2015 08:58 by ADMIN
Provide the ability to drag/drop files into the Treeview/GridView of RadFileExplorer and automatically upload them. Currently this option is offered only over the RadAsyncUpload area inside the Upload dialog of RadFileExplorer. 
Completed
Last Updated: 28 Jul 2016 13:34 by Mark
Completed
Last Updated: 09 Jun 2016 15:25 by ADMIN
At present, when an invalid file is selected, the alert message does not clearly indicate what is the validation error - invalid extension or the size being too large. It should show a message that clearly states what the problem is so the user can fix it.


For the time being you can handle the AsyncUpload's OnClientValidationFailed event and show different messages—http://docs.telerik.com/devtools/aspnet-ajax/controls/asyncupload/client-side-programming/onclientvalidationfailed.

Example:

ASP.NET
-------------------------------
<telerik:RadFileExplorer runat="server" ID="RadFileExplorer1">
    <Configuration ViewPaths="~/" UploadPaths="~/" DeletePaths="~/" SearchPatterns="*.jpg" />
</telerik:RadFileExplorer>

<script>
    // Prevent the built-in validation alert
    Telerik.Web.UI.RadFileExplorer.prototype._showUploadValidationFailedAlert = function () {

    }

    function OnClientValidationFailed(sender, args) {
        var fileExtention = args.get_fileName().substring(args.get_fileName().lastIndexOf('.') + 1, args.get_fileName().length);
        if (args.get_fileName().lastIndexOf('.') != -1) {//this checks if the extension is correct
            if (sender.get_allowedFileExtensions().indexOf(fileExtention) == -1) {
                alert("Wrong Extension!");
            }
            else {
                alert("Wrong file size!");
            }
        }
        else {
            alert("not correct extension!");
        }
    }
</script>
-------------------------------

C#
-------------------------------
RadFileExplorer1.AsyncUpload.OnClientValidationFailed = "OnClientValidationFailed";
-------------------------------

VB
-------------------------------
RadFileExplorer1.AsyncUpload.OnClientValidationFailed = "OnClientValidationFailed"
-------------------------------

Completed
Last Updated: 02 Apr 2015 10:37 by ADMIN