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

File upload problem in RadFileExplorer

1 Answer 252 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
m
Top achievements
Rank 1
m asked on 14 Jun 2011, 08:50 AM
When I tries to upload file using RadFileExplorer it gives me following js error.

Microsoft JScript runtime error: 'this.get_windowManager()' is null or not an object.

after this error file gets uploaded but other icons like create folder, open, refresh  add and other icons get hide.

Following is my code. Please let me know if I am missing anything

aspx page

<head id="Head1" runat="server">

    <style type="text/css">
        h5
        {
            margin: 3px;
            margin-top: 6px;
        }
    </style>
   <telerik:RadCodeBlock ID="codeBlock1" runat="server">

        <script type="text/javascript">
            //<![CDATA[
            function OnClientItemSelected(sender, args) {
              
            }
            //]]>
        </script>

    </telerik:RadCodeBlock>
</head>
<body class="BODY">
    <form id="form1" runat="server">
    
    <telerik:RadScriptManager ID="RadScriptManager1" runat="Server">
    </telerik:RadScriptManager>
    <telerik:RadFormDecorator runat="server" ID="RadFormDecorator1" DecoratedControls="All" />
    <table cellspacing="4">
        <tr>
            <td rowspan="2" style="vertical-align: top;">
                <telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="520px" Height="520px"
                    OnClientItemSelected="OnClientItemSelected">
                    <Configuration ViewPaths="~/ClaimFiles" UploadPaths="~/ClaimFiles"
                        DeletePaths="~/ClaimFiles" />
                </telerik:RadFileExplorer>
               
            </td>
          
        </tr>
    </table>
    
    </form>
</body>

-------
aspx.cs code

protected void Page_Load(object sender, EventArgs e)
    {

        //set properties according to configuration panel
        //FileExplorer1.VisibleControls = GetVisibleControls();
        FileExplorer1.EnableOpenFile = true;
        FileExplorer1.DisplayUpFolderItem = true;
        FileExplorer1.AllowPaging = true;
        FileExplorer1.EnableCreateNewFolder = true;
        //FileExplorer1.Configuration.ContentProviderTypeName = typeof(CustomProvider).AssemblyQualifiedName;



        FileExplorer1.Configuration.UploadPaths = new string[] { "~/ClaimFiles" };
        
        if (!IsPostBack)
        {
            //Set initial folder to open. Note that the path is case sensitive!
            FileExplorer1.InitialPath = Page.ResolveUrl("~/ClaimFiles");
        }
    }


I am using latest telerik version ie 2011.1.519.40. I just noticed that it is working fine in firefox but creating problem in IE. I am using IE8.

Your help is highly appriciated.
Thanks
Mehul

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 15 Jun 2011, 08:57 AM
Hi Mehul,

The RadFileExplorer control should not be placed in an AjaxPanel, because it has a built-in RadAjaxPanel control that handles all the FileExplorer requests. The outer AjaxPanel will catch the requests of the FileExplorer and a conflict may arise, which can result in erroneous behavior.
So, please remove the RadAjaxPanel and see if you experience the same problems.

Best wishes,
Pero
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
FileExplorer
Asked by
m
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or