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

2 posts, 0 answers
  1. Ajit
    Ajit avatar
    3 posts
    Member since:
    Aug 2012

    Posted 03 Apr 2013 Link to this post


    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">

    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?


  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 04 Apr 2013 Link to this post

    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?

    Kind regards,
    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.
Back to Top