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

Callback has failed

5 Answers 142 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Fit2Page asked on 17 Oct 2012, 09:55 AM
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

5 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 17 Oct 2012, 03:45 PM
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.
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 18 Oct 2012, 06:35 AM
Hi Vesi,

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

Marc
0
Vessy
Telerik team
answered on 18 Oct 2012, 02:30 PM
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.
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 19 Oct 2012, 12:42 PM
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
0
Tomasz
Top achievements
Rank 1
answered on 24 Sep 2013, 08:14 PM
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 ;)

Tags
FileExplorer
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Vessy
Telerik team
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Tomasz
Top achievements
Rank 1
Share this question
or