jQWidgets Forums

jQuery UI Widgets Forums Grid Handle errors from REST web service

This topic contains 2 replies, has 2 voices, and was last updated by  Peter Stoev 12 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Handle errors from REST web service #15883

    Hi all,
    I have a restful web service that is programmed to return 404 status code in case of any unhandled errors, e.g. database server is unavailable, etc.

    Presently, the grid displays ‘No records found’

    This message gives an incorrect impression to the end user. Is it possible to make the grid respond to an error condition? If there is a specific error code which you have programmed for then do let me know and I am happy changing the server side code.

    Thanks and regards,
    Saurabh

    Handle errors from REST web service #15885

    similar behaviour when the web service returns 400 status code.

    Fiddler trace of the web service response is below:

    HTTP/1.1 400 Not Found
    Cache-Control: private
    Content-Type: text/html
    Server: Microsoft-IIS/7.5
    X-AspNet-Version: 4.0.30319
    X-Powered-By: ASP.NET
    Date: Tue, 26 Feb 2013 13:18:16 GMT
    Connection: close
    Bad RequestSystem.Exception: Querytype:SDS,pattern:error,simulated error
    at FatcaDataAccessLayer.SqlDataAccessLayer.FetchRecordsUsingAnyPattern(String pattern, String queryType) in C:\work\MyTrials\Asp.net Ajax toolkit\Fatca\FatcaDataAccessLayer\SqlDataAccessLayer.cs:line 59
    at FatcaGridDemo
    Handle errors from REST web service #15894

    Peter Stoev
    Keymaster

    Hi,

    You can localize/change the Grid strings. This is demonstrated in this help topic: jquery-grid-localization.htm.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.