This is a migrated thread and some comments may be shown as answers.

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

5 Answers 76 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Suzy
Top achievements
Rank 2
Suzy asked on 28 Apr 2015, 09:31 AM

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

 

 

5 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 30 Apr 2015, 04:04 PM
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.

 
0
Suzy
Top achievements
Rank 2
answered on 04 May 2015, 07:13 AM

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>
 

 

0
Accepted
Vessy
Telerik team
answered on 05 May 2015, 03:55 PM
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.

 
0
Suzy
Top achievements
Rank 2
answered on 06 Jul 2015, 07:17 AM

For those who have the sames proble: 

After installing version Q2 2015 it works!

 

0
Vessy
Telerik team
answered on 06 Jul 2015, 10:12 AM
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.

 
Tags
FileExplorer
Asked by
Suzy
Top achievements
Rank 2
Answers by
Vessy
Telerik team
Suzy
Top achievements
Rank 2
Share this question
or