Callback has failed, File Explorer in RadWindow

3 posts, 1 answers
  1. Muneer Raza
    Muneer Raza avatar
    4 posts
    Member since:
    Jul 2014

    Posted 23 Jul 2014 Link to this post

    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. Answer
    Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 25 Jul 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Muneer Raza
    Muneer Raza avatar
    4 posts
    Member since:
    Jul 2014

    Posted 25 Jul 2014 in reply to Dobromir Link to this post

    Yes, UserControl is ajaxified.

    Many Thanks Dobromir
Back to Top