Approved
Last Updated: 09 Jun 2014 07:18 by Rui Lopes
Rui Lopes
Created on: 03 Jun 2014 13:09
Category: AutoCompleteBox
Type: Feature Request
1
Autocompletebox HTTP Status Code Error
In your page http://www.telerik.com/help/aspnet-ajax/autocompletebox-onclientrequestfailed.html you only have one message to show to the user, why not return de http status code?

In this moment the workaround suggested by your team is:
<script>
    Telerik.Web.UI.WebServiceLoader.prototype._onWebServiceError = function (error, context)
    {
        var errorEventArgs = new Telerik.Web.UI.WebServiceLoaderErrorEventArgs(error.get_statusCode().toString(), context);
        this._raiseEvent("loadingError", errorEventArgs);
    }
 
    function OnClientRequestFailed(sender, args) {
        console.log(args.get_errorMessage());
    }
</script>
0 comments