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

Upload: Uncaught TypeError: Cannot call method 'get_selectedItem' of null

1 Answer 63 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Ajit
Top achievements
Rank 1
Ajit asked on 04 Apr 2013, 01:58 AM
Hi,

When I try to upload a file using FileExplorer, the update panel keeps showing long after the file upload.

In the Chrome console, this script error appears:

Uncaught TypeError: Cannot call method 'get_selectedItem' of null

Here's the declaration of the FileExplorer:

<telerik:RadFileExplorer ID="ExplorerExportTemplates" runat="server" Width="600px" Height="400px"
                                                            Skin="Metro" Configuration-AllowFileExtensionRename="False" Configuration-AllowMultipleSelection="False"
                                                            AllowPaging="true" EnableOpenFile="true" EnableAsyncUpload="True">
                                                            </telerik:RadFileExplorer>

Here's the code-behind:

string[] paths = new string[] { Page.ResolveUrl(fullPath) };
                ExplorerExportTemplates.Configuration.ViewPaths = paths;
                ExplorerExportTemplates.Configuration.UploadPaths = paths;
                ExplorerExportTemplates.Configuration.DeletePaths = paths;
                ExplorerExportTemplates.Configuration.EnableAsyncUpload = true;
                ExplorerExportTemplates.Configuration.MaxUploadFileSize = 104857600;
                ExplorerExportTemplates.Configuration.AllowFileExtensionRename = false;
                ExplorerExportTemplates.Configuration.AllowMultipleSelection = false;
                ExplorerExportTemplates.EnableCreateNewFolder = true;
                ExplorerExportTemplates.EnableCopy = false;
                ExplorerExportTemplates.ExplorerMode = Telerik.Web.UI.FileExplorer.FileExplorerMode.FileTree;
                ExplorerExportTemplates.Configuration.SearchPatterns = new string[] { "*.xls", "*.xlsx" };
                ExplorerExportTemplates.Configuration.ContentProviderTypeName = typeof(Telerik.Web.UI.Widgets.FileSystemContentProvider).AssemblyQualifiedName;


Any ideas?

Thanks,

Ajit

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 04 Apr 2013, 12:32 PM
Hello Ajit,

I tried to reproduce the reported error but to no avail. Could you please provide more detailed information on the specific scenario?

  • Which version of RadControls for ASP.NET AJAX and .NET Framework are used in the application?
  • Are you able to reproduce the problem on the live demos? If so, could you please provide the exact steps the need to be executed in order to reproduce the issue?
  • Could you please provide a simple fully runnable project reproducing the problem so we can investigate it further?

For your convenience I have created a video demonstrating my test, could you please see if I am missing something?
http://screencast.com/t/RQ0N7lkJZ


Kind regards,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
FileExplorer
Asked by
Ajit
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or