Callback has failed

6 posts, 0 answers
  1. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 17 Oct 2012 Link to this post

    What can be the cause of the alert "Callback has failed" when opening the contents of a folder in the FileExplorer?
    This only happens for certain subfolders in a setup.

    Marc
  2. Vessy
    Admin
    Vessy avatar
    1384 posts

    Posted 17 Oct 2012 Link to this post

    Hi Marc,

    Could you check if you have enough permissions on these specific subfolders which are causing the error? Please, refer the following help article for more information on the subject: Troubleshooting.

    In addition, could you try to overwrite the FileList's _onErrorCallback() function and try to debug the actual error returned from the server, e.g.:
    Telerik.Web.UI.RadFileExplorer.FileList.prototype._onErrorCallback = function(response, context){ debugger; }


    Kind regards,
    Vesi
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 18 Oct 2012 Link to this post

    Hi Vesi,

    How must this onErrorCallback be implemented in code?
    I cannot find it...

    Marc
  5. Vessy
    Admin
    Vessy avatar
    1384 posts

    Posted 18 Oct 2012 Link to this post

    Hi Marc,

    The override of the  _onErrorCallback() function has to be placed inside the <script> tag, at the end of the form:
        ...
        <script type="text/javascript">
            Telerik.Web.UI.RadFileExplorer.FileList.prototype._onErrorCallback = function(response, context){ debugger; }
        <\script>
    <\form>

    Kind regards,
    Vesi
    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.
  6. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 19 Oct 2012 Link to this post

    Hi Vesi,

    I just solved the problem.
    The error was raised due to an error in the custom IHttpHandler that I created to generate thumbnails.
    Some images properties (width and height) could not be read, probably due to corrupt image files.

    Thanks for your time.

    Marc
  7. Tomasz
    Tomasz avatar
    1 posts
    Member since:
    Sep 2013

    Posted 24 Sep 2013 Link to this post

    Hello there.
    This is my first post here so be easy if any formating is done wrong.

    Just to make it clear: The namespace of FileList is now Telerik.Web.UI.FileExplorer.FileList

    So if anyone stuggles with finding the right namespace here it is ;)

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017