Results 1 to 2 of 2

Thread: Store Proxy error handling

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default Store Proxy error handling

    Hi,
    I'm using proxy in my store to read data through a ASP.Net method in controller class.This method is returning json data or exception details if any error encountered.I need those errors to be captured in my ExtJs grid and show appropriate message to end user.for example if database server is disconnected ,a message is displayed as 'Database unavailable for grid' instead of just loading the grid withoud any data.

    Regards,
    Vivek

  2. #2
    Sencha Premium User
    Join Date
    Mar 2011
    Posts
    286
    Vote Rating
    47
      0  

    Default

    The Proxy has an 'exception' listener that can be used for handling the displaying of error messages. On the reverse side, the Store 'write' listener can be used to handle success messages.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •