Fileexplorer upload gives error : Unable to get property 'add_folderLoaded' of undefined or null reference

6 posts, 1 answers
  1. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 28 Apr 2015 Link to this post

    I have a page with a RadFileExplorer with EnableAsyncUpload to true.

    When I drag and drop a document and upload this document I get to following error : Unable to get property 'add_folderLoaded' of undefined or null reference.

    My page :

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileExplorerWithoutHomePage.aspx.cs" Inherits="FileExplorerWithoutHomePage" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     
    <%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>
     
    <head runat="server">
        <title></title>
        <meta content="C#" name="CODE_LANGUAGE"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edgde,chrome=1" />
    </head>
     
    <body>
     
        <form id="form1" runat="server" method="post" >
     
            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
              
               <telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="520px" Height="500px" AllowPaging="true" PageSize="10" ExplorerMode="FileTree" >
                    <Configuration EnableAsyncUpload="true" ></Configuration>        
                </telerik:RadFileExplorer>
        </form>
    </body>
    </html>
     

    The folders are set in code behind :

    protected void Page_Load(object sender, EventArgs e)
            {
                
                if (!Page.IsPostBack)
                {
                    String FolderRoot = @"~/DataFolder/ITServiceTickets/1142957/";
                    string[] Paths = new string[]
                    {
                        @FolderRoot
                    };
                    FileExplorer1.Configuration.ViewPaths = Paths;
                    FileExplorer1.Configuration.UploadPaths = Paths;
                    FileExplorer1.Configuration.DeletePaths = Paths;
     
                }
     
            }

    What is the problem?

    Kind regards

    Suzy

     

     

  2. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 30 Apr 2015 Link to this post

    Hi Suzy,

    The provided FileExplorer configuration seems proper, nevertheless you can try disabling the script combining of the AjaxToolkitScriptManager and see whether the issue still persists:
    <asp:ToolkitScriptManager runat="server" ID="ScriptManager1" CombineScripts="false"   />

    Please note that as of version 15.1 the ToolkitScriptManager is removed from the AjaxControlToolkit suite. Please, refer the following forum thread for more details on the subject: Telerik UI for ASP.NET AJAX and AJAX Control Toolkit

    Regards,
    Vessy
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 04 May 2015 in reply to Vessy Link to this post

    Hi  Vessy,

    I tried it with following code, still the same problem :

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileExplorerWithoutHomePage.aspx.cs" Inherits="cmWeb.Test.FileExplorerWithoutHomePage" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     
    <head runat="server">
        <title></title>
        <meta content="C#" name="CODE_LANGUAGE"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edgde,chrome=1" />
        <link href="/cmit/StyleSheets/CMStyle.css" type="text/css" rel="stylesheet"/>
    </head>
     
    <body>
     
    <form id="form1" runat="server" method="post" >
     
            <asp:ScriptManager ID="ScriptManager" runat="server"></asp:ScriptManager>
              
             <telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="520px" Height="500px" AllowPaging="true" PageSize="10" ExplorerMode="FileTree" >
                    <Configuration EnableAsyncUpload="true" ></Configuration>        
                </telerik:RadFileExplorer>
        </form>
    </body>
    </html>
     

     

  5. Answer
    Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 05 May 2015 Link to this post

    Hi Suzy,

    I made some more tests and was finally able to reproduce the problem on our side. I have logged it into our bug tracking system and you can track its progress here: feedback item. You can workaround the problem for the moment by disabling the AsyncUpload of the control as the error seems to be reproducible only in this upload mode.

    I have also upgraded your Telerik points as a small token of gratitude for the reported problem.

    Regards,
    Vessy
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  6. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 06 Jul 2015 in reply to Vessy Link to this post

    For those who have the sames proble: 

    After installing version Q2 2015 it works!

     

  7. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 06 Jul 2015 Link to this post

    Hi Suzy,

    As per your observation the reported bug has been fixed and the fix for it is included in our Q2 2015 release. I am closing this thread now, but you can feel free to reopen it whenever any further question on this matter occurs.

    Regards,
    Vessy
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017