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

Callback has failed, File Explorer in RadWindow

2 Answers 31 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Muneer Raza
Top achievements
Rank 1
Muneer Raza asked on 23 Jul 2014, 07:16 PM
Hi

First post on Telerik Forum, hope will receive satisfactory and quick answer. Excuse me for my English and formatting....
I have created a User Control.ascx, inside it, I have RadFileExplorer.

<telerik:RadFileExplorer ID="RadFileExplorer1" Runat="server" EnableAsyncUpload="True" Width="100%">
<Configuration SearchPatterns="*.*" EnableAsyncUpload="True" UploadPaths="~/FolderSource" ViewPaths="~/FolderSource" ></Configuration>
</telerik:RadFileExplorer>

I am populating RadWindow with above UserControl.ascx dynamically. 

<telerik:RadWindow ID="DocumentRadWindow" runat="server" Height="600px" Width="1000px" Modal="true">
        <ContentTemplate>
            <asp:PlaceHolder ID="DocumentPlaceHolder" runat="server" />
        </ContentTemplate>
</telerik:RadWindow

//CodeBehind
   
protected void RadTabStripDocument_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
    {
        string TabText = e.Tab.Text;

        if (TabText == "Upload Document")
        {
            UserControl DocumentSort = (UserControl)LoadControl("~/DesktopModules/Document/DocumentUpload/DocumentUpload.ascx");
            
            DocumentPlaceHolder.Controls.Add(DocumentSort);
            DocumentRadWindow.VisibleOnPageLoad = true;
        }
    }

 During Upload,Delete and even clicking on Refresh button, it throws an pupup error "Callback has failed". And nothing happen, except loading image.














2 Answers, 1 is accepted

Sort by
0
Accepted
Dobromir
Telerik team
answered on 25 Jul 2014, 10:21 AM
Hello,

Is the RadFileExplorer or the usercontrol ajaxified? If so, this is expected behaviour - RadFileExplorer's functionality is heavily based on client-side callbacks and it is highly not recommended to be externally ajaxified. If the control is wrapped inside UpdatePanel it should be excluded from the ajax triggeres.

Regards,
Dobromir
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Muneer Raza
Top achievements
Rank 1
answered on 25 Jul 2014, 04:10 PM
Yes, UserControl is ajaxified.

Many Thanks Dobromir
Tags
FileExplorer
Asked by
Muneer Raza
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Muneer Raza
Top achievements
Rank 1
Share this question
or